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:
d436963
)
Simplify ctx calculation in decode_cabac_mb_dqp()
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 19 Dec 2008 01:50:20 +0000
(
01:50
+0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 19 Dec 2008 01:50:20 +0000
(
01:50
+0000)
no speed change
Originally committed as revision 16231 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h264.c
patch
|
blob
|
history
diff --git
a/libavcodec/h264.c
b/libavcodec/h264.c
index
4f65d85
..
7294123
100644
(file)
--- a/
libavcodec/h264.c
+++ b/
libavcodec/h264.c
@@
-4955,12
+4955,9
@@
static int decode_cabac_mb_cbp_chroma( H264Context *h) {
return 1 + get_cabac_noinline( &h->cabac, &h->cabac_state[77 + ctx] );
}
static int decode_cabac_mb_dqp( H264Context *h) {
- int ctx
= 0;
+ int ctx
= h->last_qscale_diff !
= 0;
int val = 0;
- if( h->last_qscale_diff != 0 )
- ctx++;
-
while( get_cabac_noinline( &h->cabac, &h->cabac_state[60 + ctx] ) ) {
if( ctx < 2 )
ctx = 2;