From 975a1447f76e8d30fc01e6ea5466c84faf3d76e4 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Fri, 29 Apr 2011 18:53:57 +0200 Subject: Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*. Signed-off-by: Diego Biurrun --- libavcodec/fraps.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'libavcodec/fraps.c') diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c index a142484a51..2bbc7b9f01 100644 --- a/libavcodec/fraps.c +++ b/libavcodec/fraps.c @@ -180,10 +180,10 @@ static int decode_frame(AVCodecContext *avctx, return -1; } /* bit 31 means same as previous pic */ - f->pict_type = (header & (1U<<31))? FF_P_TYPE : FF_I_TYPE; - f->key_frame = f->pict_type == FF_I_TYPE; + f->pict_type = (header & (1U<<31))? AV_PICTURE_TYPE_P : AV_PICTURE_TYPE_I; + f->key_frame = f->pict_type == AV_PICTURE_TYPE_I; - if (f->pict_type == FF_I_TYPE) { + if (f->pict_type == AV_PICTURE_TYPE_I) { buf32=(const uint32_t*)buf; for(y=0; yheight/2; y++){ luma1=(uint32_t*)&f->data[0][ y*2*f->linesize[0] ]; @@ -223,10 +223,10 @@ static int decode_frame(AVCodecContext *avctx, return -1; } /* bit 31 means same as previous pic */ - f->pict_type = (header & (1U<<31))? FF_P_TYPE : FF_I_TYPE; - f->key_frame = f->pict_type == FF_I_TYPE; + f->pict_type = (header & (1U<<31))? AV_PICTURE_TYPE_P : AV_PICTURE_TYPE_I; + f->key_frame = f->pict_type == AV_PICTURE_TYPE_I; - if (f->pict_type == FF_I_TYPE) { + if (f->pict_type == AV_PICTURE_TYPE_I) { for(y=0; yheight; y++) memcpy(&f->data[0][ (avctx->height-y)*f->linesize[0] ], &buf[y*avctx->width*3], @@ -252,11 +252,11 @@ static int decode_frame(AVCodecContext *avctx, } /* skip frame */ if(buf_size == 8) { - f->pict_type = FF_P_TYPE; + f->pict_type = AV_PICTURE_TYPE_P; f->key_frame = 0; break; } - f->pict_type = FF_I_TYPE; + f->pict_type = AV_PICTURE_TYPE_I; f->key_frame = 1; if ((AV_RL32(buf) != FPS_TAG)||(buf_size < (planes*1024 + 24))) { av_log(avctx, AV_LOG_ERROR, "Fraps: error in data stream\n"); @@ -295,11 +295,11 @@ static int decode_frame(AVCodecContext *avctx, } /* skip frame */ if(buf_size == 8) { - f->pict_type = FF_P_TYPE; + f->pict_type = AV_PICTURE_TYPE_P; f->key_frame = 0; break; } - f->pict_type = FF_I_TYPE; + f->pict_type = AV_PICTURE_TYPE_I; f->key_frame = 1; if ((AV_RL32(buf) != FPS_TAG)||(buf_size < (planes*1024 + 24))) { av_log(avctx, AV_LOG_ERROR, "Fraps: error in data stream\n"); -- cgit v1.2.3