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.
This commit is contained in:
David Schleef 2010-02-17 21:22:54 -08:00
parent 54094cd9ce
commit 5685e0a4b7

View file

@ -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 =