av1decoder: Don't error out by dropped OBU

OBU can be dropped if the current layer is not in selected operation
point

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3430>
This commit is contained in:
Seungha Yang 2022-11-18 01:59:55 +09:00 committed by GStreamer Marge Bot
parent f1a52c5ea0
commit c92128f6b0

View file

@ -693,6 +693,11 @@ gst_av1_decoder_handle_frame (GstVideoDecoder * decoder,
while (total_consumed < map.size) {
res = gst_av1_parser_identify_one_obu (priv->parser,
map.data + total_consumed, map.size, &obu, &consumed);
if (res == GST_AV1_PARSER_DROP) {
total_consumed += consumed;
continue;
}
if (res != GST_AV1_PARSER_OK) {
ret = GST_FLOW_ERROR;
goto out;