jpegdec: Pull row_stride from GST_VIDEO_FRAME_PLANE_STRIDE()
authorMarek Vasut <marex@denx.de>
Fri, 11 Feb 2022 22:55:57 +0000 (23:55 +0100)
committerMarek Vasut <marex@denx.de>
Sun, 13 Feb 2022 13:46:31 +0000 (14:46 +0100)
commitc9e108378ae40179d3e08eb069bf5f633873424a
tree0d58004470ff53aa1204f88328441d8c22fbc157
parentd277002186d33eed505d030bfba0ad30624306aa
jpegdec: Pull row_stride from GST_VIDEO_FRAME_PLANE_STRIDE()

The libjpeg-turbo internal state might not be correctly initialized for
the first frame in a stream, pull the frame stride from gstreamer frame
metadata instead, which is correct even for the first frame, and which
makes this code consistent with the surrounding lines.

Fixes: e6d83d8f96 ("jpegdec: Support libjpeg-turbo colorspace conversion")
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1687>
subprojects/gst-plugins-good/ext/jpeg/gstjpegdec.c