[FFmpeg-trac] #6024(undetermined:new): avcodec_send_packet fails to decode mpeg2 correctly

FFmpeg trac at avcodec.org
Thu Dec 15 18:27:10 EET 2016

#6024: avcodec_send_packet fails to decode mpeg2 correctly
             Reporter:  pkoshevoy    |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:               |               Resolution:
  avcodec_send_packet                |               Blocked By:
  avcodec_send_packet flags          |  Reproduced by developer:  0
  truncated                          |
             Blocking:               |
Analyzed by developer:  0            |

Comment (by pkoshevoy):

 The code that broke predates me by many years .. I don't know what the
 original motivation for using the truncated flag was.  Probably it was set
 in the hope of greater resiliency against dropped or damaged packets.
 This is how it was set in the affected codebase:
     ctx = avcodec_alloc_context3(codec);
     if (codec->capabilities & CODEC_CAP_TRUNCATED)
         ctx->flags |= CODEC_FLAG_TRUNCATED; // we do not send complete

 There may be other decoders that do not implement the new API internally
 and may be similarly afflicted, I don't think this is limited to mpeg2
 decoder alone

Ticket URL: <https://trac.ffmpeg.org/ticket/6024#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list