[Libav-user] Flushing Audio Frame Crash

phuze koj phuze9 at gmail.com
Fri May 10 14:29:50 CEST 2013


well the data is PCM (int16_t*), the codec is aac (which will interlace
with a h264 baseline video in an mp4 container)


On Fri, May 10, 2013 at 6:08 AM, Paul B Mahol <onemda at gmail.com> wrote:

> On 5/10/13, mohM <phuze9 at gmail.com> wrote:
> > I saw another thread on here similar to this, but it didn't really solve
> my
> > problem. Basically, I'm still working on getting my audio encoding to
> work,
> > and I'm now having trouble getting a basic audio encode to work...What
> I'm
> > trying to do is get a single frame of audio to encode. The first call to
> > avcodec_encode_audio2() is successfull, and if I leave out the flush
> loop,
> > the console output tells me:
> >
> > As far as I can understand from the documentation and my experience with
> > video encoding, this is pretty normal. When I try to flush the frame by
> > passing NULL into avcodec_encode_audio2(), however, the program crashes
> and
> > says "Integer division by zero" in mlock.c. Am I doing something wrong
> > here?
> > Any ideas?
>
> What codec?
>
> Note that only some encoders actually supports flushing.
>
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://libav-users.943685.n4.nabble.com/Flushing-Audio-Frame-Crash-tp4657562.html
> > Sent from the libav-users mailing list archive at Nabble.com.
> > _______________________________________________
> > Libav-user mailing list
> > Libav-user at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/libav-user
> >
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130510/f89e3199/attachment.html>


More information about the Libav-user mailing list