v4l2codecs: vp9: Only fill compressed headers if needed

Fixes: 13944cf3ee ("v4l2codecs: vp9: Make compressed hdr control optional")
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1748>
This commit is contained in:
Nicolas Dufresne 2022-02-18 16:02:27 -05:00 committed by GStreamer Marge Bot
parent 54a1f60077
commit 5a9df9e850

View file

@ -723,7 +723,9 @@ gst_v4l2_codec_vp9_dec_decode_picture (GstVp9Decoder * decoder,
}
gst_v4l2_codec_vp9_dec_fill_dec_params (self, &picture->frame_hdr, dpb);
gst_v4l2_codec_vp9_dec_fill_prob_updates (self, &picture->frame_hdr);
if (decoder->parse_compressed_headers)
gst_v4l2_codec_vp9_dec_fill_prob_updates (self, &picture->frame_hdr);
memcpy (bitstream_data, picture->data, picture->size);
self->bitstream_map.size = picture->size;