]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/kmvc.c
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavcodec / kmvc.c
index 1042cc477cc77842ecfd4d0b32833fd0a767da5f..aa2aaace6c8828225e4eb0df627f1c74c1d9ab8d 100644 (file)
@@ -259,10 +259,10 @@ static int decode_frame(AVCodecContext * avctx, void *data, int *data_size, AVPa
 
     if (header & KMVC_KEYFRAME) {
         ctx->pic.key_frame = 1;
-        ctx->pic.pict_type = FF_I_TYPE;
+        ctx->pic.pict_type = AV_PICTURE_TYPE_I;
     } else {
         ctx->pic.key_frame = 0;
-        ctx->pic.pict_type = FF_P_TYPE;
+        ctx->pic.pict_type = AV_PICTURE_TYPE_P;
     }
 
     if (header & KMVC_PALETTE) {
@@ -375,6 +375,7 @@ static av_cold int decode_init(AVCodecContext * avctx)
         c->setpal = 1;
     }
 
+    avcodec_get_frame_defaults(&c->pic);
     avctx->pix_fmt = PIX_FMT_PAL8;
 
     return 0;