summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2010-02-17 21:22:54 -0800
committerDavid Schleef <ds@schleef.org>2010-02-17 21:30:29 -0800
commit5685e0a4b79fd730c013e25f01fa754acac5c5c2 (patch)
tree676a42c6ed3780faaa2fb24ca5cb33b7b2fb6e34
parent54094cd9ce99bfcb188392ddc0280465eb7e2a55 (diff)
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.
-rw-r--r--ext/theora/gsttheoradec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/theora/gsttheoradec.c b/ext/theora/gsttheoradec.c
index b2f076a44..7ec3e9205 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 =