summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazunori Kobayashi <kkobayas@igel.co.jp>2016-06-29 16:37:43 +0900
committerMatthew Waters <matthew@centricular.com>2016-06-29 18:44:20 +1000
commit766cd65fa4c76eda6438b3aaa2f9afcaa9a2d660 (patch)
tree73280f19fbe2f480a0cf248adaeab2534b8e6604
parent7d52ad84bceeafbf2cc3387e71ca3ed368a6e9b9 (diff)
downloadgst-omx-766cd65fa4c76eda6438b3aaa2f9afcaa9a2d660.tar.gz
omxvideodec: Use GST_VIDEO_FRAME_PLANE_STRIDE() to get output buffer's stride
GST_VIDEO_FRAME_PLANE_STRIDE() should be used to get the actual buffer stride, as reported in the buffers's GstVideoMeta, when copying data to that buffer. https://bugzilla.gnome.org/show_bug.cgi?id=768173
-rw-r--r--omx/gstomxvideodec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c
index 64a9754..6baaa48 100644
--- a/omx/gstomxvideodec.c
+++ b/omx/gstomxvideodec.c
@@ -515,7 +515,7 @@ gst_omx_video_dec_fill_buffer (GstOMXVideoDec * self,
data = src;
for (h = 0; h < dst_height[p]; h++) {
memcpy (dst, data, dst_width[p]);
- dst += GST_VIDEO_INFO_PLANE_STRIDE (vinfo, p);
+ dst += GST_VIDEO_FRAME_PLANE_STRIDE (&frame, p);
data += src_stride[p];
}
src += src_size[p];