[FFmpeg-trac] #6815(avcodec:new): Regression recovering broken H264 stream

FFmpeg trac at avcodec.org
Tue Nov 7 21:52:45 EET 2017


#6815: Regression recovering broken H264 stream
---------------------------------+---------------------------------------
             Reporter:  w3sip    |                     Type:  defect
               Status:  new      |                 Priority:  important
            Component:  avcodec  |                  Version:  unspecified
             Keywords:           |               Blocked By:
             Blocking:           |  Reproduced by developer:  0
Analyzed by developer:  0        |
---------------------------------+---------------------------------------
 Summary of the bug:

 With v3.1.7, the attached H264 input encounters an error, but recovers
 almost immediately. With v3.3.3 (and current master), it still will
 recover if AV_CODEC_FLAG2_CHUNKS flag isn't set (which is why ffmpeg
 works), but will never decode another frame, if the flag is provided.

 How to reproduce:

 Change ffmpeg.c by adding
         ist->dec_ctx->flags2 |= AV_CODEC_FLAG2_CHUNKS;
 before avcodec_open2 (not sure if there's a command line option to set
 it?)

 {{{
 % ffmpeg -threads 1 -i brokenStream.h264 -vcodec mpeg4 foo.mp4
 }}}

 n3.1.7 will recover after encountering an error
 concealing 1580 DC, 1580 AC, 1580 MV errors in P frame

 n3.3.3 will not

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


More information about the FFmpeg-trac mailing list