From d594d4df6c1bcd8e6f8276126011665451d3e6a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 19 Aug 2016 14:19:38 +0300 Subject: [PATCH] rawvideoparse: Revert last commit and actually remember the physically last plane Instead of just always taking the last one as before. --- gst/rawparse/gstrawvideoparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/rawparse/gstrawvideoparse.c b/gst/rawparse/gstrawvideoparse.c index 7e3d2efee6..acec6d27ec 100644 --- a/gst/rawparse/gstrawvideoparse.c +++ b/gst/rawparse/gstrawvideoparse.c @@ -1176,10 +1176,10 @@ gst_raw_video_parse_update_info (GstRawVideoParseConfig * config) for (i = 0; i < n_planes; ++i) { gsize plane_offset = GST_VIDEO_INFO_PLANE_OFFSET (info, i); if (plane_offset >= last_plane_offset) { + last_plane = i; last_plane_offset = plane_offset; } } - last_plane = n_planes - 1; last_plane_size = GST_VIDEO_INFO_PLANE_STRIDE (info,