aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-10-23 21:13:31 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-10-23 21:13:31 +0000
commit7b89e963e82005169910bec4cce4074ec018875c (patch)
tree348cf34afd8ee3309601764cdf35683e6f0c7c03 /libavcodec/h264.c
parent3981c385ccc649fb1d83a88e9539775964f05d82 (diff)
downloadffmpeg-7b89e963e82005169910bec4cce4074ec018875c.tar.gz
fix CABAC+LOOP missmatch
Originally committed as revision 3628 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 53cc1689b4..a494a3be2a 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -4670,7 +4670,10 @@ decode_intra_mb:
nnz[ scan8[20]+0 ] = nnz[ scan8[20]+1 ] =nnz[ scan8[20]+8 ] =nnz[ scan8[20]+9 ] = 0;
}
} else {
- memset( &h->non_zero_count_cache[8], 0, 8*5 );
+ uint8_t * const nnz= &h->non_zero_count_cache[0];
+ fill_rectangle(&nnz[scan8[0]], 4, 4, 8, 0, 1);
+ nnz[ scan8[16]+0 ] = nnz[ scan8[16]+1 ] =nnz[ scan8[16]+8 ] =nnz[ scan8[16]+9 ] =
+ nnz[ scan8[20]+0 ] = nnz[ scan8[20]+1 ] =nnz[ scan8[20]+8 ] =nnz[ scan8[20]+9 ] = 0;
}
s->current_picture.qscale_table[mb_xy]= s->qscale;