mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
av1decoder: Fix wrong spatial layer validation
Highest spatial id and temporal id is independent, and should not drop temporal enhance layer by the previous condition. Note that the decision for dropping OBU based on operation point is being handled in gst_av1_parser_identify_one_obu() already. Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1585 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3430>
This commit is contained in:
parent
55ca832d70
commit
f1a52c5ea0
1 changed files with 3 additions and 3 deletions
|
@ -712,11 +712,11 @@ gst_av1_decoder_handle_frame (GstVideoDecoder * decoder,
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (priv->current_picture->temporal_id > self->highest_spatial_layer) {
|
if (priv->current_picture->spatial_id > self->highest_spatial_layer) {
|
||||||
ret = GST_FLOW_ERROR;
|
ret = GST_FLOW_ERROR;
|
||||||
GST_VIDEO_DECODER_ERROR (self, 1, STREAM, DECODE,
|
GST_VIDEO_DECODER_ERROR (self, 1, STREAM, DECODE,
|
||||||
("current picture temporal_id %d should not be higher than "
|
("current picture spatial_id %d should not be higher than "
|
||||||
"highest spatial layer %d", priv->current_picture->temporal_id,
|
"highest spatial layer %d", priv->current_picture->spatial_id,
|
||||||
self->highest_spatial_layer), (NULL), ret);
|
self->highest_spatial_layer), (NULL), ret);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue