diff --git a/gst/videoconvert/videoconvert.c b/gst/videoconvert/videoconvert.c index f46e8924c7..87999852b0 100644 --- a/gst/videoconvert/videoconvert.c +++ b/gst/videoconvert/videoconvert.c @@ -1020,7 +1020,7 @@ putline_UYVP (VideoConvert * convert, GstVideoFrame * dest, const guint8 * src, destline[(i / 2) * 5 + 0] = u0; destline[(i / 2) * 5 + 1] = y0 >> 2; destline[(i / 2) * 5 + 2] = (y0 << 6) | (v0 >> 4); - destline[(i / 2) * 5 + 3] = (v0 << 4) | (y1 >> 2); + destline[(i / 2) * 5 + 3] = (v0 << 4) | (y1 >> 6); destline[(i / 2) * 5 + 4] = (y1 << 2); } } diff --git a/gst/videotestsrc/videotestsrc.c b/gst/videotestsrc/videotestsrc.c index b62ab57b31..ae38ebe82f 100644 --- a/gst/videotestsrc/videotestsrc.c +++ b/gst/videotestsrc/videotestsrc.c @@ -1733,7 +1733,7 @@ convert_hline_UYVP (paintinfo * p, int y) Y[(i / 2) * 5 + 0] = u0; Y[(i / 2) * 5 + 1] = y0 >> 2; Y[(i / 2) * 5 + 2] = (y0 << 6) | (v0 >> 4); - Y[(i / 2) * 5 + 3] = (v0 << 4) | (y1 >> 2); + Y[(i / 2) * 5 + 3] = (v0 << 4) | (y1 >> 6); Y[(i / 2) * 5 + 4] = (y1 << 2); } }