jpegdec: Fix crash when interlaced field height is not DCT block size aligned
authorSeungha Yang <seungha@centricular.com>
Tue, 3 Aug 2021 10:12:11 +0000 (19:12 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 7 Sep 2021 12:15:34 +0000 (12:15 +0000)
commit2c69544d0c60b1aa43b43f67fa5a887698d735c4
tree1fb56cc58734eb5f7ce68dfe0ab69f60aa0c931c
parentfedd6c2a28e1abd34b6e590e5c060c87c7e9231b
jpegdec: Fix crash when interlaced field height is not DCT block size aligned

In case of interlaced JPEG file, we are doubling stride.
The scratch scan line should take account of it as well.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/1042>
ext/jpeg/gstjpegdec.c