aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-01-18 23:31:14 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-01-18 23:31:14 +0000
commit70bd7a3d48e9a90c27c8b3f2624ee6810e61cbe1 (patch)
tree74b8a945e8dfe1032397e8bbc3cc30803ebed0c2
parent5e07aa772199121941d37725eabe689ff7476ce5 (diff)
downloadffmpeg-70bd7a3d48e9a90c27c8b3f2624ee6810e61cbe1.tar.gz
Optimize top non_zero_count_cache init.
Originally committed as revision 21306 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/h264.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h
index 63a16a3678..f317372b1c 100644
--- a/libavcodec/h264.h
+++ b/libavcodec/h264.h
@@ -970,16 +970,13 @@ static av_always_inline int fill_caches(H264Context *h, int mb_type, int for_deb
if(for_deblock){
*(uint32_t*)&h->non_zero_count_cache[4+8*0]= 0;
}else{
- h->non_zero_count_cache[4+8*0]=
- h->non_zero_count_cache[5+8*0]=
- h->non_zero_count_cache[6+8*0]=
- h->non_zero_count_cache[7+8*0]=
h->non_zero_count_cache[1+8*0]=
h->non_zero_count_cache[2+8*0]=
h->non_zero_count_cache[1+8*3]=
- h->non_zero_count_cache[2+8*3]= CABAC && !IS_INTRA(mb_type) ? 0 : 64;
+ h->non_zero_count_cache[2+8*3]=
+ *(uint32_t*)&h->non_zero_count_cache[4+8*0]= CABAC && !IS_INTRA(mb_type) ? 0 : 0x40404040;
}
}