diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-02-14 02:08:48 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-02-14 02:08:48 +0000 |
commit | 3d2c3ef4b46d96023d6f0d358e4d7d65568da67c (patch) | |
tree | 7cebba50fa7ab37ba65c6f670c85c716d5cf1718 /libavcodec/h264_cabac.c | |
parent | 056c502155fdae551054e52e670dd6190279c4bc (diff) | |
download | ffmpeg-streaming-3d2c3ef4b46d96023d6f0d358e4d7d65568da67c.zip ffmpeg-streaming-3d2c3ef4b46d96023d6f0d358e4d7d65568da67c.tar.gz |
Remove slice_table checks from decode_cabac_mb_cbp_luma() and set left/top_cbp so
these checks arent needed.
Originally committed as revision 21819 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264_cabac.c')
-rw-r--r-- | libavcodec/h264_cabac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264_cabac.c b/libavcodec/h264_cabac.c index aba25a5..a35b3eb 100644 --- a/libavcodec/h264_cabac.c +++ b/libavcodec/h264_cabac.c @@ -867,8 +867,8 @@ static int decode_cabac_mb_chroma_pre_mode( H264Context *h) { static int decode_cabac_mb_cbp_luma( H264Context *h) { int cbp_b, cbp_a, ctx, cbp = 0; - cbp_a = h->slice_table[h->left_mb_xy[0]] == h->slice_num ? h->left_cbp : -1; - cbp_b = h->slice_table[h->top_mb_xy] == h->slice_num ? h->top_cbp : -1; + cbp_a = h->left_cbp; + cbp_b = h->top_cbp; ctx = !(cbp_a & 0x02) + 2 * !(cbp_b & 0x04); cbp |= get_cabac_noinline(&h->cabac, &h->cabac_state[73 + ctx]); |