[FFmpeg-cvslog] Replace deprecated FF_I_TYPE with AV_PICTURE_TYPE_I in v308 and yuv4.

Carl Eugen Hoyos git at videolan.org
Wed Jan 4 19:50:15 CET 2012


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Wed Jan  4 19:45:46 2012 +0100| [84ce58faf59d88b497917b3d9e13a5fb2a10fe3e] | committer: Carl Eugen Hoyos

Replace deprecated FF_I_TYPE with AV_PICTURE_TYPE_I in v308 and yuv4.

Found-by: Paul B Mahol

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=84ce58faf59d88b497917b3d9e13a5fb2a10fe3e
---

 libavcodec/v308dec.c |    2 +-
 libavcodec/v308enc.c |    2 +-
 libavcodec/yuv4dec.c |    2 +-
 libavcodec/yuv4enc.c |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavcodec/v308dec.c b/libavcodec/v308dec.c
index 3bc3c44..a24ccf4 100644
--- a/libavcodec/v308dec.c
+++ b/libavcodec/v308dec.c
@@ -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];
diff --git a/libavcodec/v308enc.c b/libavcodec/v308enc.c
index 4e5488a..77fe073 100644
--- a/libavcodec/v308enc.c
+++ b/libavcodec/v308enc.c
@@ -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];
diff --git a/libavcodec/yuv4dec.c b/libavcodec/yuv4dec.c
index 206accb..996caaf 100644
--- a/libavcodec/yuv4dec.c
+++ b/libavcodec/yuv4dec.c
@@ -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];
diff --git a/libavcodec/yuv4enc.c b/libavcodec/yuv4enc.c
index f15b7e8..db7b624 100644
--- a/libavcodec/yuv4enc.c
+++ b/libavcodec/yuv4enc.c
@@ -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];



More information about the ffmpeg-cvslog mailing list