vp3dec: set key_frame field of AVFrame
authorJoakim Plate <elupus@ecce.se>
Sat, 10 Sep 2011 19:50:45 +0000 (21:50 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 10 Sep 2011 20:10:00 +0000 (22:10 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/vp3.c

index 8b7d82f..0b38973 100644 (file)
@@ -1877,6 +1877,7 @@ static int vp3_decode_frame(AVCodecContext *avctx,
 
     s->current_frame.reference = 3;
     s->current_frame.pict_type = s->keyframe ? AV_PICTURE_TYPE_I : AV_PICTURE_TYPE_P;
+    s->current_frame.key_frame = s->keyframe;
     if (ff_thread_get_buffer(avctx, &s->current_frame) < 0) {
         av_log(s->avctx, AV_LOG_ERROR, "get_buffer() failed\n");
         goto error;