<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>I have tried this...<div><br></div><div>All I get as an output is : Error number -22 occurred...</div><div><br></div><div>Doesnt really help too much.</div><div><br></div><div><br><br><div>From: harry@gps-laptimer.de<br>Date: Thu, 19 Jun 2014 10:41:42 +0200<br>To: libav-user@ffmpeg.org<br>Subject: Re: [Libav-user] avcodec_encode_audio2 failing with error code -22        in C++ FFMPEG<br><br><pre>> 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?<br> <br>av_err2str (ret) generates a human readable version of the error code.<br> <br>Greetings Harald<br> <br> <br></pre><br>_______________________________________________
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user</div></div>                                     </div></body>
</html>