mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
ffmpegcolorspace: Fix YUY2/YVYU/UYVY to Y42B conversion for odd widths
This commit is contained in:
parent
1d4d29f134
commit
bd56c3c44f
1 changed files with 15 additions and 0 deletions
|
@ -983,6 +983,11 @@ uyvy422_to_yuv422p (AVPicture * dst, const AVPicture * src,
|
||||||
cb++;
|
cb++;
|
||||||
cr++;
|
cr++;
|
||||||
}
|
}
|
||||||
|
if (w) {
|
||||||
|
lum[0] = p[1];
|
||||||
|
cb[0] = p[0];
|
||||||
|
cr[0] = p[2];
|
||||||
|
}
|
||||||
p1 += src->linesize[0];
|
p1 += src->linesize[0];
|
||||||
lum1 += dst->linesize[0];
|
lum1 += dst->linesize[0];
|
||||||
cb1 += dst->linesize[1];
|
cb1 += dst->linesize[1];
|
||||||
|
@ -1098,6 +1103,11 @@ yvyu422_to_yuv422p (AVPicture * dst, const AVPicture * src,
|
||||||
cb++;
|
cb++;
|
||||||
cr++;
|
cr++;
|
||||||
}
|
}
|
||||||
|
if (w) {
|
||||||
|
lum[0] = p[0];
|
||||||
|
cb[0] = p[3];
|
||||||
|
cr[0] = p[1];
|
||||||
|
}
|
||||||
p1 += src->linesize[0];
|
p1 += src->linesize[0];
|
||||||
lum1 += dst->linesize[0];
|
lum1 += dst->linesize[0];
|
||||||
cb1 += dst->linesize[1];
|
cb1 += dst->linesize[1];
|
||||||
|
@ -1132,6 +1142,11 @@ yuv422_to_yuv422p (AVPicture * dst, const AVPicture * src,
|
||||||
cb++;
|
cb++;
|
||||||
cr++;
|
cr++;
|
||||||
}
|
}
|
||||||
|
if (w) {
|
||||||
|
lum[0] = p[0];
|
||||||
|
cb[0] = p[1];
|
||||||
|
cr[0] = p[3];
|
||||||
|
}
|
||||||
p1 += src->linesize[0];
|
p1 += src->linesize[0];
|
||||||
lum1 += dst->linesize[0];
|
lum1 += dst->linesize[0];
|
||||||
cb1 += dst->linesize[1];
|
cb1 += dst->linesize[1];
|
||||||
|
|
Loading…
Reference in a new issue