diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-03-21 14:30:19 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-21 14:30:19 +0100 |
commit | 97c8ecaadab4e246d969fadd44072025b64747e4 (patch) | |
tree | 0261278a3cfd7a66ff9875eb6d5722d68d375477 /libavcodec/h264_refs.c | |
parent | 2cc08cad9ecf2d2524bc572a4e9bbe659b330d5c (diff) | |
parent | 56febc993b928ccc039a32158ca60b234c311875 (diff) | |
download | ffmpeg-97c8ecaadab4e246d969fadd44072025b64747e4.tar.gz |
Merge commit '56febc993b928ccc039a32158ca60b234c311875'
* commit '56febc993b928ccc039a32158ca60b234c311875':
h264: move the slice type variables into the per-slice context
Conflicts:
libavcodec/h264.c
libavcodec/h264_cabac.c
libavcodec/h264_cavlc.c
libavcodec/h264_slice.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264_refs.c')
-rw-r--r-- | libavcodec/h264_refs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/h264_refs.c b/libavcodec/h264_refs.c index ce5304998b..d2f603b25b 100644 --- a/libavcodec/h264_refs.c +++ b/libavcodec/h264_refs.c @@ -112,11 +112,11 @@ static int add_sorted(H264Picture **sorted, H264Picture **src, int len, int limi return out_i; } -int ff_h264_fill_default_ref_list(H264Context *h) +int ff_h264_fill_default_ref_list(H264Context *h, H264SliceContext *sl) { int i, len; - if (h->slice_type_nos == AV_PICTURE_TYPE_B) { + if (sl->slice_type_nos == AV_PICTURE_TYPE_B) { H264Picture *sorted[32]; int cur_poc, list; int lens[2]; @@ -172,7 +172,7 @@ int ff_h264_fill_default_ref_list(H264Context *h) h->default_ref_list[0][i].pic_id, h->default_ref_list[0][i].f.data[0]); } - if (h->slice_type_nos == AV_PICTURE_TYPE_B) { + if (sl->slice_type_nos == AV_PICTURE_TYPE_B) { for (i = 0; i < h->ref_count[1]; i++) { tprintf(h->avctx, "List1: %s fn:%d 0x%p\n", (h->default_ref_list[1][i].long_ref ? "LT" : "ST"), |