[Libav-user] avcodec_encode_audio2 failing with error code -22 in C++ FFMPEG

Harald Schlangmann harry at gps-laptimer.de
Thu Jun 19 10:41:42 CEST 2014

> I have the following code to encode an audio stream and everything seems to be working fine until I get to the avcodec_encode_audio2 function, I am failing with -22 error code, and I dont know what that error code means. I verified that pFrame and out_fmt_ctx are allocated. Does anyone have an idea of what the problem might be?

av_err2str (ret) generates a human readable version of the error code.

Greetings Harald

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4145 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20140619/85b2cbe8/attachment.p7s>

More information about the Libav-user mailing list