From 5685e0a4b79fd730c013e25f01fa754acac5c5c2 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Wed, 17 Feb 2010 21:22:54 -0800 Subject: [PATCH] theoradec: Fix chroma copying for 4:2:2 Fix mixup of height/width, causing only half the chroma lines to be copied when outputting buffers. Fixes: #610329. --- ext/theora/gsttheoradec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/theora/gsttheoradec.c b/ext/theora/gsttheoradec.c index b2f076a..7ec3e92 100644 --- a/ext/theora/gsttheoradec.c +++ b/ext/theora/gsttheoradec.c @@ -1002,7 +1002,7 @@ theora_handle_image (GstTheoraDec * dec, th_ycbcr_buffer buf, GstBuffer ** out) for (plane = 0; plane < 3; plane++) { width = gst_video_format_get_component_width (format, plane, dec->width); - height = gst_video_format_get_component_width (format, plane, dec->height); + height = gst_video_format_get_component_height (format, plane, dec->height); stride = gst_video_format_get_row_stride (format, plane, dec->width); dest = -- 2.7.4