projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cfca0d
)
Simplify ctx update in decode_cabac_mb_dqp().
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 19 Dec 2008 02:00:33 +0000
(
02:00
+0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 19 Dec 2008 02:00:33 +0000
(
02:00
+0000)
no speed change
Originally committed as revision 16232 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h264.c
patch
|
blob
|
history
diff --git
a/libavcodec/h264.c
b/libavcodec/h264.c
index
7294123
..
54c66a1
100644
(file)
--- a/
libavcodec/h264.c
+++ b/
libavcodec/h264.c
@@
-4959,10
+4959,7
@@
static int decode_cabac_mb_dqp( H264Context *h) {
int val = 0;
while( get_cabac_noinline( &h->cabac, &h->cabac_state[60 + ctx] ) ) {
- if( ctx < 2 )
- ctx = 2;
- else
- ctx = 3;
+ ctx= 2+(ctx>>1);
val++;
if(val > 102) //prevent infinite loop
return INT_MIN;