smartencoder: Fix renegotiating when reencoding parts of the stream with vpx
authorThibault Saunier <tsaunier@igalia.com>
Tue, 5 Oct 2021 13:46:26 +0000 (10:46 -0300)
committerThibault Saunier <tsaunier@igalia.com>
Mon, 18 Oct 2021 13:10:24 +0000 (10:10 -0300)
commit32d36d0e89e7d77a3127537bcbf1ad2e969bf09c
tree6b6145ce84b9429f4d3658d23d0f73445abe06d0
parentd9b1e1e99f39a638e78078924161a99fd59efbbf
smartencoder: Fix renegotiating when reencoding parts of the stream with vpx

In the encoded streams we might not have all the information about the
raw video stream, but when reencoding they end up being specified, even
if those are default values.

As vp8 decoders always output frames in some YUV color space we can
ensure that when upstream doesn't specify any value in its caps we
use the default one which is what we end up doing when decoding/reencoding
anyway, so this way downstream (matroskamux in that case) doesn't need
to be able to renegotiate (which it doesn't).

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1062>
subprojects/gst-plugins-base/gst/encoding/gstsmartencoder.c