projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2669597
)
Simplify decode_cabac_mb_ref() a little bit, 2 cpu cycles faster on
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 22 Dec 2008 17:14:13 +0000
(17:14 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 22 Dec 2008 17:14:13 +0000
(17:14 +0000)
pentium dual.
Originally committed as revision 16279 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h264.c
patch
|
blob
|
blame
|
history
diff --git
a/libavcodec/h264.c
b/libavcodec/h264.c
index
0883018
..
a170177
100644
(file)
--- a/
libavcodec/h264.c
+++ b/
libavcodec/h264.c
@@
-4991,10
+4991,7
@@
static int decode_cabac_mb_ref( H264Context *h, int list, int n ) {
while( get_cabac( &h->cabac, &h->cabac_state[54+ctx] ) ) {
ref++;
- if( ctx < 4 )
- ctx = 4;
- else
- ctx = 5;
+ ctx = (ctx>>2)+4;
if(ref >= 32 /*h->ref_list[list]*/){
return -1;
}