From 8191b6fcd27c77fee1795585eb73879a882a6c87 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 24 Jul 2013 12:41:58 +0200 Subject: [PATCH] vrawpay: fix UYVP format --- gst/rtp/gstrtpvrawpay.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/rtp/gstrtpvrawpay.c b/gst/rtp/gstrtpvrawpay.c index 0e49e3ab97..f5b7b0da5f 100644 --- a/gst/rtp/gstrtpvrawpay.c +++ b/gst/rtp/gstrtpvrawpay.c @@ -177,7 +177,7 @@ gst_rtp_vraw_pay_setcaps (GstRTPBasePayload * payload, GstCaps * caps) break; case GST_VIDEO_FORMAT_UYVP: samplingstr = "YCbCr-4:2:2"; - pgroup = 4; + pgroup = 5; xinc = 2; depth = 10; depthstr = "10"; @@ -409,6 +409,7 @@ gst_rtp_vraw_pay_handle_buffer (GstRTPBasePayload * payload, GstBuffer * buffer) case GST_VIDEO_FORMAT_BGR: case GST_VIDEO_FORMAT_BGRA: case GST_VIDEO_FORMAT_UYVY: + case GST_VIDEO_FORMAT_UYVP: offs /= rtpvrawpay->xinc; memcpy (outdata, yp + (lin * ystride) + (offs * pgroup), length); outdata += length;