OSDN Git Service

lavc/prores: restore pict_type and key_frame setting.
authorClément Bœsch <ubitux@gmail.com>
Fri, 22 Mar 2013 18:56:39 +0000 (19:56 +0100)
committerClément Bœsch <ubitux@gmail.com>
Fri, 22 Mar 2013 22:05:50 +0000 (23:05 +0100)
libavcodec/proresdec2.c

index b7aef36..bd6404a 100644 (file)
@@ -533,6 +533,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
     }
 
     ctx->frame = frame;
+    ctx->frame->pict_type = AV_PICTURE_TYPE_I;
+    ctx->frame->key_frame = 1;
     ctx->first_field = 1;
 
     buf += 8;