av1parser: Don't error out on "currently" undefined seq-level indices

They might very well be defined in the future and that shouldn't affect the
parsing in any way. Specifically, ffmpeg with `av1_nvenc` seems to create
`GST_AV1_SEQ_LEVEL_7_3` currently and parsing such streams would fail otherwise.

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/4589

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9502>
This commit is contained in:
Sebastian Dröge 2025-08-07 13:58:27 +03:00 committed by GStreamer Marge Bot
parent 1b041d8114
commit fdeca0767d

View File

@ -486,18 +486,7 @@ static gboolean
av1_seq_level_idx_is_valid (GstAV1SeqLevels seq_level_idx)
{
return seq_level_idx == GST_AV1_SEQ_LEVEL_MAX
|| (seq_level_idx < GST_AV1_SEQ_LEVELS
/* The following levels are currently undefined. */
&& seq_level_idx != GST_AV1_SEQ_LEVEL_2_2
&& seq_level_idx != GST_AV1_SEQ_LEVEL_2_3
&& seq_level_idx != GST_AV1_SEQ_LEVEL_3_2
&& seq_level_idx != GST_AV1_SEQ_LEVEL_3_3
&& seq_level_idx != GST_AV1_SEQ_LEVEL_4_2
&& seq_level_idx != GST_AV1_SEQ_LEVEL_4_3
&& seq_level_idx != GST_AV1_SEQ_LEVEL_7_0
&& seq_level_idx != GST_AV1_SEQ_LEVEL_7_1
&& seq_level_idx != GST_AV1_SEQ_LEVEL_7_2
&& seq_level_idx != GST_AV1_SEQ_LEVEL_7_3);
|| seq_level_idx < GST_AV1_SEQ_LEVELS;
}
static void