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:
efe6807
)
dsputil: use vertical component for drawing bottom edge.
author
Ronald S. Bultje
<rsbultje@gmail.com>
Wed, 25 Jan 2012 09:17:52 +0000
(17:17 +0800)
committer
Ronald S. Bultje
<rsbultje@gmail.com>
Wed, 25 Jan 2012 10:06:36 +0000
(18:06 +0800)
Current code only writes 8 pixels of vertical edge for YUV422, which
causes MC artifacts when subsequent frames use data from that edge.
libavcodec/x86/dsputil_mmx.c
patch
|
blob
|
history
diff --git
a/libavcodec/x86/dsputil_mmx.c
b/libavcodec/x86/dsputil_mmx.c
index
e34b95b
..
7964014
100644
(file)
--- a/
libavcodec/x86/dsputil_mmx.c
+++ b/
libavcodec/x86/dsputil_mmx.c
@@
-860,7
+860,7
@@
static void draw_edges_mmx(uint8_t *buf, int wrap, int width, int height, int w,
}
if (sides&EDGE_BOTTOM) {
- for(i = 0; i <
w
; i += 4) {
+ for(i = 0; i <
h
; i += 4) {
ptr= last_line + (i + 1) * wrap - w;
__asm__ volatile(
"1: \n\t"