From ce5e49b0c2c11ec153834677fc5c903dd71d4e6e Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Thu, 28 Apr 2011 01:40:44 +0200 Subject: replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_* --- libavcodec/rv10.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'libavcodec/rv10.c') diff --git a/libavcodec/rv10.c b/libavcodec/rv10.c index 8185b75546..cbecfa8a87 100644 --- a/libavcodec/rv10.c +++ b/libavcodec/rv10.c @@ -240,9 +240,9 @@ static int rv10_decode_picture_header(MpegEncContext *s) marker = get_bits1(&s->gb); if (get_bits1(&s->gb)) - s->pict_type = FF_P_TYPE; + s->pict_type = AV_PICTURE_TYPE_P; else - s->pict_type = FF_I_TYPE; + s->pict_type = AV_PICTURE_TYPE_I; if(!marker) av_log(s->avctx, AV_LOG_ERROR, "marker missing\n"); pb_frame = get_bits1(&s->gb); @@ -259,7 +259,7 @@ static int rv10_decode_picture_header(MpegEncContext *s) return -1; } - if (s->pict_type == FF_I_TYPE) { + if (s->pict_type == AV_PICTURE_TYPE_I) { if (s->rv10_version == 3) { /* specific MPEG like DC coding not used */ s->last_dc[0] = get_bits(&s->gb, 8); @@ -319,16 +319,16 @@ static int rv20_decode_picture_header(MpegEncContext *s) i= get_bits(&s->gb, 2); switch(i){ - case 0: s->pict_type= FF_I_TYPE; break; - case 1: s->pict_type= FF_I_TYPE; break; //hmm ... - case 2: s->pict_type= FF_P_TYPE; break; - case 3: s->pict_type= FF_B_TYPE; break; + case 0: s->pict_type= AV_PICTURE_TYPE_I; break; + case 1: s->pict_type= AV_PICTURE_TYPE_I; break; //hmm ... + case 2: s->pict_type= AV_PICTURE_TYPE_P; break; + case 3: s->pict_type= AV_PICTURE_TYPE_B; break; default: av_log(s->avctx, AV_LOG_ERROR, "unknown frame type\n"); return -1; } - if(s->last_picture_ptr==NULL && s->pict_type==FF_B_TYPE){ + if(s->last_picture_ptr==NULL && s->pict_type==AV_PICTURE_TYPE_B){ av_log(s->avctx, AV_LOG_ERROR, "early B pix\n"); return -1; } @@ -399,7 +399,7 @@ static int rv20_decode_picture_header(MpegEncContext *s) if(seq - s->time > 0x4000) seq -= 0x8000; if(seq - s->time < -0x4000) seq += 0x8000; if(seq != s->time){ - if(s->pict_type!=FF_B_TYPE){ + if(s->pict_type!=AV_PICTURE_TYPE_B){ s->time= seq; s->pp_time= s->time - s->last_non_b_time; s->last_non_b_time= s->time; @@ -422,7 +422,7 @@ av_log(s->avctx, AV_LOG_DEBUG, "\n");*/ s->f_code = 1; s->unrestricted_mv = 1; - s->h263_aic= s->pict_type == FF_I_TYPE; + s->h263_aic= s->pict_type == AV_PICTURE_TYPE_I; // s->alt_inter_vlc=1; // s->obmc=1; // s->umvplus=1; @@ -435,7 +435,7 @@ av_log(s->avctx, AV_LOG_DEBUG, "\n");*/ seq, s->mb_x, s->mb_y, s->pict_type, s->qscale, s->no_rounding); } - assert(s->pict_type != FF_B_TYPE || !s->low_delay); + assert(s->pict_type != AV_PICTURE_TYPE_B || !s->low_delay); return s->mb_width*s->mb_height - mb_pos; } @@ -616,7 +616,7 @@ static int rv10_decode_packet(AVCodecContext *avctx, av_log(s->avctx, AV_LOG_ERROR, "ERROR at MB %d %d\n", s->mb_x, s->mb_y); return -1; } - if(s->pict_type != FF_B_TYPE) + if(s->pict_type != AV_PICTURE_TYPE_B) ff_h263_update_motion_val(s); MPV_decode_mb(s, s->block); if(s->loop_filter) @@ -693,7 +693,7 @@ static int rv10_decode_frame(AVCodecContext *avctx, ff_er_frame_end(s); MPV_frame_end(s); - if (s->pict_type == FF_B_TYPE || s->low_delay) { + if (s->pict_type == AV_PICTURE_TYPE_B || s->low_delay) { *pict= *(AVFrame*)s->current_picture_ptr; } else if (s->last_picture_ptr != NULL) { *pict= *(AVFrame*)s->last_picture_ptr; -- cgit v1.2.3