mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 15:18:21 +00:00
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:
parent
f1a52c5ea0
commit
c92128f6b0
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue