From: <sl...@ke...> - 2010-06-17 15:21:14
|
Module: gst-plugins-base Branch: master Commit: bd56c3c44f64f0e1f664c08c6abea4179c0bac11 URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=bd56c3c44f64f0e1f664c08c6abea4179c0bac11 Author: Sebastian Dröge <seb...@co...> Date: Thu Jun 17 16:54:56 2010 +0200 ffmpegcolorspace: Fix YUY2/YVYU/UYVY to Y42B conversion for odd widths --- gst/ffmpegcolorspace/imgconvert.c | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/gst/ffmpegcolorspace/imgconvert.c b/gst/ffmpegcolorspace/imgconvert.c index 579df34..2e09740 100644 --- a/gst/ffmpegcolorspace/imgconvert.c +++ b/gst/ffmpegcolorspace/imgconvert.c @@ -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]; |