ffmpegcolorspace: Fix YUY2/YVYU/UYVY to Y42B conversion for odd widths

This commit is contained in:
Sebastian Dröge 2010-06-17 16:54:56 +02:00
parent 1d4d29f134
commit bd56c3c44f

View file

@ -983,6 +983,11 @@ uyvy422_to_yuv422p (AVPicture * dst, const AVPicture * src,
cb++;
cr++;
}
if (w) {
lum[0] = p[1];
cb[0] = p[0];
cr[0] = p[2];
}
p1 += src->linesize[0];
lum1 += dst->linesize[0];
cb1 += dst->linesize[1];
@ -1098,6 +1103,11 @@ yvyu422_to_yuv422p (AVPicture * dst, const AVPicture * src,
cb++;
cr++;
}
if (w) {
lum[0] = p[0];
cb[0] = p[3];
cr[0] = p[1];
}
p1 += src->linesize[0];
lum1 += dst->linesize[0];
cb1 += dst->linesize[1];
@ -1132,6 +1142,11 @@ yuv422_to_yuv422p (AVPicture * dst, const AVPicture * src,
cb++;
cr++;
}
if (w) {
lum[0] = p[0];
cb[0] = p[1];
cr[0] = p[3];
}
p1 += src->linesize[0];
lum1 += dst->linesize[0];
cb1 += dst->linesize[1];