aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-01-25 17:17:52 +0800
committerRonald S. Bultje <rsbultje@gmail.com>2012-01-25 18:06:36 +0800
commitc3af52fa8bbd6f1c5c0c70af89b02ff5b394f21d (patch)
tree4acfbd371ee3b0a447f2b9b35d6325bc5da37426 /libavcodec
parentefe68076dab56293168ffb66d7b6c1977b740098 (diff)
downloadffmpeg-c3af52fa8bbd6f1c5c0c70af89b02ff5b394f21d.tar.gz
dsputil: use vertical component for drawing bottom edge.
Current code only writes 8 pixels of vertical edge for YUV422, which causes MC artifacts when subsequent frames use data from that edge.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/x86/dsputil_mmx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/x86/dsputil_mmx.c b/libavcodec/x86/dsputil_mmx.c
index e34b95b0da..7964014532 100644
--- 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"