summaryrefslogtreecommitdiff
path: root/libavcodec/proresdec2.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-03-22 19:56:39 +0100
committerClément Bœsch <ubitux@gmail.com>2013-03-22 23:05:50 +0100
commit859f7da543bfade2dd00307c2bb361e0213899f5 (patch)
tree1a42a9e42e5330f75e6fbe3a8c5d0b64e815e049 /libavcodec/proresdec2.c
parentb3e9f266e8f8b9950844eb5f6bfed48fc0cb2f85 (diff)
lavc/prores: restore pict_type and key_frame setting.
Diffstat (limited to 'libavcodec/proresdec2.c')
-rw-r--r--libavcodec/proresdec2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/proresdec2.c b/libavcodec/proresdec2.c
index b7aef36d23..bd6404a2c3 100644
--- a/libavcodec/proresdec2.c
+++ b/libavcodec/proresdec2.c
@@ -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;