[FFmpeg-trac] #1053(avcodec:new): Crash on avcodec_default_release_buffer

FFmpeg trac at avcodec.org
Sun Mar 11 13:53:10 CET 2012

#1053: Crash on avcodec_default_release_buffer
             Reporter:  Lastique  |                     Type:  defect
               Status:  new       |                 Priority:  important
            Component:  avcodec   |                  Version:  0.10
             Keywords:            |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
 When allocating an internal buffer for an audio frame, audio_get_buffer in
 libavcodec/utils.c does not increment buffer_count. This results in
 incorrect behavior of avcodec_default_release_buffer (it attempts to
 FFSWAP InternalBuffer when buf is NULL) for this frame and consequently a
 crash with SIGSEGV.

 Please, find a simple test case attached that reproduce the problem.
 Compiled with the following command line:

 gcc -o av_internal_buf_crash -lavcodec -lavutil av_internal_buf_crash.c

Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1053>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list