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:
1aea5d3
)
Replace /2 by >>1 in decode_cabac_mb_dqp()
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 19 Dec 2008 02:28:51 +0000
(
02:28
+0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 19 Dec 2008 02:28:51 +0000
(
02:28
+0000)
3 cpu cycles speed up on pentium dual.
Originally committed as revision 16233 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h264.c
patch
|
blob
|
history
diff --git
a/libavcodec/h264.c
b/libavcodec/h264.c
index
54c66a1
..
4879e67
100644
(file)
--- a/
libavcodec/h264.c
+++ b/
libavcodec/h264.c
@@
-4966,9
+4966,9
@@
static int decode_cabac_mb_dqp( H264Context *h) {
}
if( val&0x01 )
- return
(val + 1)/2
;
+ return
(val + 1)>>1
;
else
- return -(
val + 1)/2
;
+ return -(
(val + 1)>>1)
;
}
static int decode_cabac_p_mb_sub_type( H264Context *h ) {
if( get_cabac( &h->cabac, &h->cabac_state[21] ) )