mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
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
This commit is contained in:
parent
7d52ad84bc
commit
766cd65fa4
1 changed files with 1 additions and 1 deletions
|
@ -515,7 +515,7 @@ gst_omx_video_dec_fill_buffer (GstOMXVideoDec * self,
|
||||||
data = src;
|
data = src;
|
||||||
for (h = 0; h < dst_height[p]; h++) {
|
for (h = 0; h < dst_height[p]; h++) {
|
||||||
memcpy (dst, data, dst_width[p]);
|
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];
|
data += src_stride[p];
|
||||||
}
|
}
|
||||||
src += src_size[p];
|
src += src_size[p];
|
||||||
|
|
Loading…
Reference in a new issue