vpxdec: Check that output width and height != 0
authorStian Selnes <stian@pexip.com>
Wed, 28 Feb 2018 14:46:51 +0000 (15:46 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 2 Jun 2020 20:59:20 +0000 (23:59 +0300)
commit44e4de43dafc550a01c7ba677bd398e135dc550c
tree4c2833e7b8e5038f4e3f8bead582fa77547107a9
parent1b8df15b7888b6a476f71a8d6906330eb7751ffd
vpxdec: Check that output width and height != 0

For VP8 it's possible to signal width or height to be 0, but it does
not make sense to do so. For VP9 it's impossible. Hence, we most
likely have a corrupt stream. Trying to negotiate caps downstream with
either width or height as 0 will fail with something like

gst_video_decoder_negotiate_default: assertion 'GST_VIDEO_INFO_WIDTH (&state->info) != 0' failed

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/610>
ext/vpx/gstvpxdec.c
tests/check/elements/vp8dec.c