]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/qsvdec_mpeg2.c
mmal: Remove setting extradata on input format
[ffmpeg] / libavcodec / qsvdec_mpeg2.c
index dbe882bf749d48c262a62d2191326b054274b514..98318bd87a47d57de24b615a3a8f0d2cec81490a 100644 (file)
@@ -114,7 +114,6 @@ static int qsv_decode_frame(AVCodecContext *avctx, void *data,
 
     /* process buffered data */
     while (!*got_frame) {
-        /* prepare the input data -- convert to Annex B if needed */
         if (s->input_ref.size <= 0) {
             /* no more data */
             if (av_fifo_size(s->packet_fifo) < sizeof(AVPacket))
@@ -174,6 +173,6 @@ AVCodec ff_mpeg2_qsv_decoder = {
     .decode         = qsv_decode_frame,
     .flush          = qsv_decode_flush,
     .close          = qsv_decode_close,
-    .capabilities   = CODEC_CAP_DELAY,
+    .capabilities   = CODEC_CAP_DELAY | CODEC_CAP_DR1,
     .priv_class     = &class,
 };