Replace deprecated FF_I_TYPE with AV_PICTURE_TYPE_I in v308 and yuv4.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Wed, 4 Jan 2012 18:45:46 +0000 (19:45 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Wed, 4 Jan 2012 18:45:46 +0000 (19:45 +0100)
Found-by: Paul B Mahol
libavcodec/v308dec.c
libavcodec/v308enc.c
libavcodec/yuv4dec.c
libavcodec/yuv4enc.c

index 3bc3c44..a24ccf4 100644 (file)
@@ -62,7 +62,7 @@ static int v308_decode_frame(AVCodecContext *avctx, void *data,
     }
 
     pic->key_frame = 1;
-    pic->pict_type = FF_I_TYPE;
+    pic->pict_type = AV_PICTURE_TYPE_I;
 
     y = pic->data[0];
     u = pic->data[1];
index 4e5488a..77fe073 100644 (file)
@@ -56,7 +56,7 @@ static int v308_encode_frame(AVCodecContext *avctx, uint8_t *buf,
 
     avctx->coded_frame->reference = 0;
     avctx->coded_frame->key_frame = 1;
-    avctx->coded_frame->pict_type = FF_I_TYPE;
+    avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
 
     y = pic->data[0];
     u = pic->data[1];
index 206accb..996caaf 100644 (file)
@@ -60,7 +60,7 @@ static int yuv4_decode_frame(AVCodecContext *avctx, void *data,
     }
 
     pic->key_frame = 1;
-    pic->pict_type = FF_I_TYPE;
+    pic->pict_type = AV_PICTURE_TYPE_I;
 
     y = pic->data[0];
     u = pic->data[1];
index f15b7e8..db7b624 100644 (file)
@@ -50,7 +50,7 @@ static int yuv4_encode_frame(AVCodecContext *avctx, uint8_t *buf,
 
     avctx->coded_frame->reference = 0;
     avctx->coded_frame->key_frame = 1;
-    avctx->coded_frame->pict_type = FF_I_TYPE;
+    avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
 
     y = pic->data[0];
     u = pic->data[1];