summaryrefslogtreecommitdiff
path: root/libavcodec/h264_cabac.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-03-21 18:07:01 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-03-21 18:07:01 +0100
commit9d0450ae943a7d1071fa59bfd0c4f7647d733c5f (patch)
treed1ebfb43b856fa79589c3e67580e7e6deb631c1b /libavcodec/h264_cabac.c
parentd511dc653062502ac7a86d9ef47ffeabd6f77364 (diff)
parente9b2383bf86b38ad18a001801aee20c8182e29bd (diff)
Merge commit 'e9b2383bf86b38ad18a001801aee20c8182e29bd'
* commit 'e9b2383bf86b38ad18a001801aee20c8182e29bd': h264: move mb_mbaff into the per-slice context Conflicts: libavcodec/h264_cabac.c libavcodec/h264_cavlc.c libavcodec/h264_slice.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264_cabac.c')
-rw-r--r--libavcodec/h264_cabac.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/h264_cabac.c b/libavcodec/h264_cabac.c
index 90dd9f9641..ec9167efbe 100644
--- a/libavcodec/h264_cabac.c
+++ b/libavcodec/h264_cabac.c
@@ -1933,7 +1933,7 @@ int ff_h264_decode_mb_cabac(H264Context *h, H264SliceContext *sl)
h->cur_pic.mb_type[mb_xy] = MB_TYPE_SKIP;
sl->next_mb_skipped = decode_cabac_mb_skip(h, sl, sl->mb_x, sl->mb_y+1 );
if(!sl->next_mb_skipped)
- h->mb_mbaff = sl->mb_field_decoding_flag = decode_cabac_field_decoding_flag(h, sl);
+ sl->mb_mbaff = sl->mb_field_decoding_flag = decode_cabac_field_decoding_flag(h, sl);
}
decode_mb_skip(h, sl);
@@ -1948,7 +1948,7 @@ int ff_h264_decode_mb_cabac(H264Context *h, H264SliceContext *sl)
}
if (FRAME_MBAFF(h)) {
if ((sl->mb_y & 1) == 0)
- h->mb_mbaff =
+ sl->mb_mbaff =
sl->mb_field_decoding_flag = decode_cabac_field_decoding_flag(h, sl);
}
@@ -2057,8 +2057,8 @@ decode_intra_mb:
return 0;
}
- local_ref_count[0] = sl->ref_count[0] << MB_MBAFF(h);
- local_ref_count[1] = sl->ref_count[1] << MB_MBAFF(h);
+ local_ref_count[0] = sl->ref_count[0] << MB_MBAFF(sl);
+ local_ref_count[1] = sl->ref_count[1] << MB_MBAFF(sl);
fill_decode_caches(h, sl, mb_type);