Jeff Downs <[email protected]> added the comment:

There are two distinct parts to this issue.

First, ffmpeg.c has a bug where the audio output/resampling buffers are
improperly sized, causing buffer overflows mostly when resampling is done.  This
is well described in issue 1167 and the patch there-in (which has yet to be
reviewed/applied) fixes this.  

The second item is that noted by pross, which is the that the avi demux is
producing a very large audio packet (> 1 MB). This does, in fact, cause ffmpeg
to crash even when not resampling because ffmpeg.c will try to decode the entire
coded packet at once, but, when it comes time to do the output, doesn't size
output buffers properly.  This is also fixed by the 1167 patch as it totally
reworks how those buffers are sized to avoid overflows.

I don't believe that the large packet output is counter to the API, so I'm going
to close this as a duplicate.  If someone disagrees please feel free to reopen.

----------
status: open -> closed
substatus: reproduced -> duplicate

_____________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue1174>
_____________________________________________________

Reply via email to