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:
5bfbf0a
)
avoid 2 additions (1 cpu cycle) per MB
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 31 Jul 2007 20:52:49 +0000
(20:52 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 31 Jul 2007 20:52:49 +0000
(20:52 +0000)
Originally committed as revision 9843 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mpeg12.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpeg12.c
b/libavcodec/mpeg12.c
index
de58b8f
..
b78ca70
100644
(file)
--- a/
libavcodec/mpeg12.c
+++ b/
libavcodec/mpeg12.c
@@
-1776,8
+1776,8
@@
static int mpeg_decode_slice(Mpeg1Context *s1, int mb_y,
}
s->dest[0] += 16 >> lowres;
- s->dest[1] +=
16 >> (s->chroma_x_shift + lowres)
;
- s->dest[2] +=
16 >> (s->chroma_x_shift + lowres)
;
+ s->dest[1] +=
(16 >> lowres) >> s->chroma_x_shift
;
+ s->dest[2] +=
(16 >> lowres) >> s->chroma_x_shift
;
MPV_decode_mb(s, s->block);