[FFmpeg-trac] #4572(avcodec:new): mjpeg encoder crashes

FFmpeg trac at avcodec.org
Thu May 21 14:49:27 CEST 2015


#4572: mjpeg encoder crashes
-------------------------------------+-------------------------------------
             Reporter:  maf          |                     Type:  defect
               Status:  new          |                 Priority:  important
            Component:  avcodec      |                  Version:  2.5.6
             Keywords:  mjpeg        |               Blocked By:
  encoder                            |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  1            |
-------------------------------------+-------------------------------------
 Encoding mjpeg stream crashes. I do not have repro which I can share.
 But I was able to find one commit which breaks the encoder.
 My starting good version was 2.4 and breaking version 2.5. Then I used git
 bisect and found this commit:

 Revision: 1441641d786a2deecae49c6dc2979af8791ce962
 Author: Michael Niedermayer <michaelni at gmx.at>
 Date: 29-Sep-14 5:42:59
 Message:
 avcodec/mpegvideo_enc: Allocate only a small buffer and reallocate as
 needed

 This should reduce the memory requirement

 Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
 ----
 Modified: libavcodec/mpegvideo_enc.c




 -------------
 I am not that good with ffmpeg internals to be able to find the real
 problem with this commit.

 The app crashes with access violation. It writes to memory which is not
 allocated. The stack points to avcodec library.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/4572>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list