diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index cfb21a4776d67c6937119a4497d7761e730ff1e2..ca1aec6adb18b74ee8284f3ab492a88f0a71b350 100644 --- a/libavcodec/imgconvert.c +++ b/libavcodec/imgconvert.c @@ -364,6 +364,8 @@ static void conv411(uint8_t *dst, int dst_wrap, int w, c; uint8_t *s1, *s2, *d; + width>>=1; + for(;height > 0; height--) { s1 = src; s2 = src + src_wrap;