diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-03-21 12:50:18 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-03-21 12:50:18 +0100 |
commit | bf4d0f8328c8f64611ca44a6ffdc30ca4f028249 (patch) | |
tree | e37df66f9571e2753a827c23ba8c075a8af5d323 /libavcodec/h264_refs.c | |
parent | e168b508163d7dc05176d81e6b5ea73ac23eb38b (diff) | |
parent | 7fa00653a550c0d24b3951c0f9fed6350ecf5ce4 (diff) | |
download | ffmpeg-bf4d0f8328c8f64611ca44a6ffdc30ca4f028249.tar.gz |
Merge commit '7fa00653a550c0d24b3951c0f9fed6350ecf5ce4'
* commit '7fa00653a550c0d24b3951c0f9fed6350ecf5ce4':
h264: add a parameter to the FIELD_PICTURE macro.
h264: add a parameter to the FRAME_MBAFF macro.
Conflicts:
libavcodec/h264.c
libavcodec/h264_loopfilter.c
libavcodec/h264_refs.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264_refs.c')
-rw-r--r-- | libavcodec/h264_refs.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavcodec/h264_refs.c b/libavcodec/h264_refs.c index 53a08be1cc..c3e7b7cfee 100644 --- a/libavcodec/h264_refs.c +++ b/libavcodec/h264_refs.c @@ -123,7 +123,7 @@ int ff_h264_fill_default_ref_list(H264Context *h) int cur_poc, list; int lens[2]; - if (FIELD_PICTURE) + if (FIELD_PICTURE(h)) cur_poc = h->cur_pic_ptr->field_poc[h->picture_structure == PICT_BOTTOM_FIELD]; else cur_poc = h->cur_pic_ptr->poc; @@ -192,7 +192,7 @@ static void print_long_term(H264Context *h); static int pic_num_extract(H264Context *h, int pic_num, int *structure) { *structure = h->picture_structure; - if (FIELD_PICTURE) { + if (FIELD_PICTURE(h)) { if (!(pic_num & 1)) /* opposite field */ *structure ^= PICT_FRAME; @@ -292,7 +292,7 @@ int ff_h264_decode_ref_pic_list_reordering(H264Context *h) COPY_PICTURE(&h->ref_list[list][i], &h->ref_list[list][i - 1]); } COPY_PICTURE(&h->ref_list[list][index], ref); - if (FIELD_PICTURE) { + if (FIELD_PICTURE(h)) { pic_as_field(&h->ref_list[list][index], pic_structure); } } @@ -306,13 +306,13 @@ int ff_h264_decode_ref_pic_list_reordering(H264Context *h) for (list = 0; list < h->list_count; list++) { for (index = 0; index < h->ref_count[list]; index++) { if ( !h->ref_list[list][index].f.data[0] - || (!FIELD_PICTURE && (h->ref_list[list][index].reference&3) != 3)) { + || (!FIELD_PICTURE(h) && (h->ref_list[list][index].reference&3) != 3)) { int i; av_log(h->avctx, AV_LOG_ERROR, "Missing reference picture, default is %d\n", h->default_ref_list[list][0].poc); for (i = 0; i < FF_ARRAY_ELEMS(h->last_pocs); i++) h->last_pocs[i] = INT_MIN; if (h->default_ref_list[list][0].f.data[0] - && !(!FIELD_PICTURE && (h->default_ref_list[list][0].reference&3) != 3)) + && !(!FIELD_PICTURE(h) && (h->default_ref_list[list][0].reference&3) != 3)) COPY_PICTURE(&h->ref_list[list][index], &h->default_ref_list[list][0]); else return -1; @@ -534,11 +534,11 @@ int ff_generate_sliding_window_mmcos(H264Context *h, int first_slice) if (h->short_ref_count && h->long_ref_count + h->short_ref_count >= h->sps.ref_frame_count && - !(FIELD_PICTURE && !h->first_field && h->cur_pic_ptr->reference)) { + !(FIELD_PICTURE(h) && !h->first_field && h->cur_pic_ptr->reference)) { mmco[0].opcode = MMCO_SHORT2UNUSED; mmco[0].short_pic_num = h->short_ref[h->short_ref_count - 1]->frame_num; mmco_index = 1; - if (FIELD_PICTURE) { + if (FIELD_PICTURE(h)) { mmco[0].short_pic_num *= 2; mmco[1].opcode = MMCO_SHORT2UNUSED; mmco[1].short_pic_num = mmco[0].short_pic_num + 1; @@ -769,7 +769,7 @@ int ff_h264_decode_ref_pic_marking(H264Context *h, GetBitContext *gb, if (long_arg >= 32 || (long_arg >= 16 && !(opcode == MMCO_SET_MAX_LONG && long_arg == 16) && - !(opcode == MMCO_LONG2UNUSED && FIELD_PICTURE))) { + !(opcode == MMCO_LONG2UNUSED && FIELD_PICTURE(h)))) { av_log(h->avctx, AV_LOG_ERROR, "illegal long ref in memory management control " "operation %d\n", opcode); |