v4l2slh264dec: Improve end_picture() robustness
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 18 Mar 2020 21:00:37 +0000 (17:00 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 31 Mar 2020 13:34:05 +0000 (09:34 -0400)
commitee26c9c9a1b9fc49194888df1182e9d93a4da5b2
tree08ccc090092c740d4b1aa1f471a9b86abc20250a
parentbd7db134126b1ff10193979be0233ceb952d2dcc
v4l2slh264dec: Improve end_picture() robustness

Use a goto to ensure that for all cases we cleanup the current picture state.
And move the src buffer allocation higher, so we don't queue a bitstream
buffer if we don't have a picture buffer to decode into.
sys/v4l2codecs/gstv4l2codech264dec.c