<div dir="ltr"><br>well the data is PCM (int16_t*), the codec is aac (which will interlace with a h264 baseline video in an mp4 container)</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 10, 2013 at 6:08 AM, Paul B Mahol <span dir="ltr"><<a href="mailto:onemda@gmail.com" target="_blank">onemda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 5/10/13, mohM <<a href="mailto:phuze9@gmail.com">phuze9@gmail.com</a>> wrote:<br>
> I saw another thread on here similar to this, but it didn't really solve my<br>
> problem. Basically, I'm still working on getting my audio encoding to work,<br>
> and I'm now having trouble getting a basic audio encode to work...What I'm<br>
> trying to do is get a single frame of audio to encode. The first call to<br>
> avcodec_encode_audio2() is successfull, and if I leave out the flush loop,<br>
> the console output tells me:<br>
><br>
> As far as I can understand from the documentation and my experience with<br>
> video encoding, this is pretty normal. When I try to flush the frame by<br>
> passing NULL into avcodec_encode_audio2(), however, the program crashes and<br>
> says "Integer division by zero" in mlock.c. Am I doing something wrong<br>
> here?<br>
> Any ideas?<br>
<br>
</div>What codec?<br>
<br>
Note that only some encoders actually supports flushing.<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
><br>
><br>
><br>
><br>
> --<br>
> View this message in context:<br>
> <a href="http://libav-users.943685.n4.nabble.com/Flushing-Audio-Frame-Crash-tp4657562.html" target="_blank">http://libav-users.943685.n4.nabble.com/Flushing-Audio-Frame-Crash-tp4657562.html</a><br>
> Sent from the libav-users mailing list archive at Nabble.com.<br>
> _______________________________________________<br>
> Libav-user mailing list<br>
> <a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
> <a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
><br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</div></div></blockquote></div><br></div>