diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-04-28 03:40:44 +0400 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-02 18:41:41 +0400 |
commit | ce5e49b0c2c11ec153834677fc5c903dd71d4e6e (patch) | |
tree | d641bd887afa961820f6bc93727c9b0812b58aa1 /libavcodec/libx264.c | |
parent | 301183d9be4e426d472d4be8c84095c853cb8ac4 (diff) |
replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*
Diffstat (limited to 'libavcodec/libx264.c')
-rw-r--r-- | libavcodec/libx264.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 0dd954d710..7d137a7070 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -110,9 +110,9 @@ static int X264_frame(AVCodecContext *ctx, uint8_t *buf, x4->pic.i_pts = frame->pts; x4->pic.i_type = - frame->pict_type == FF_I_TYPE ? X264_TYPE_KEYFRAME : - frame->pict_type == FF_P_TYPE ? X264_TYPE_P : - frame->pict_type == FF_B_TYPE ? X264_TYPE_B : + frame->pict_type == AV_PICTURE_TYPE_I ? X264_TYPE_KEYFRAME : + frame->pict_type == AV_PICTURE_TYPE_P ? X264_TYPE_P : + frame->pict_type == AV_PICTURE_TYPE_B ? X264_TYPE_B : X264_TYPE_AUTO; if (x4->params.b_tff != frame->top_field_first) { x4->params.b_tff = frame->top_field_first; @@ -135,14 +135,14 @@ static int X264_frame(AVCodecContext *ctx, uint8_t *buf, switch (pic_out.i_type) { case X264_TYPE_IDR: case X264_TYPE_I: - x4->out_pic.pict_type = FF_I_TYPE; + x4->out_pic.pict_type = AV_PICTURE_TYPE_I; break; case X264_TYPE_P: - x4->out_pic.pict_type = FF_P_TYPE; + x4->out_pic.pict_type = AV_PICTURE_TYPE_P; break; case X264_TYPE_B: case X264_TYPE_BREF: - x4->out_pic.pict_type = FF_B_TYPE; + x4->out_pic.pict_type = AV_PICTURE_TYPE_B; break; } |