In dnxhd decoder, set key_frame on decoded frame
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 6 Jan 2011 20:17:51 +0000 (20:17 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 6 Jan 2011 20:17:51 +0000 (20:17 +0000)
Originally committed as revision 26247 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/dnxhddec.c

index 8212487..67dd7fc 100644 (file)
@@ -56,6 +56,7 @@ static av_cold int dnxhd_decode_init(AVCodecContext *avctx)
     dsputil_init(&ctx->dsp, avctx);
     avctx->coded_frame = &ctx->picture;
     ctx->picture.type = FF_I_TYPE;
+    ctx->picture.key_frame = 1;
     return 0;
 }