codecs: av1parser: Fix a typo in seq_level_idx check.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2157>
This commit is contained in:
He Junyan 2022-04-12 10:34:27 +08:00 committed by GStreamer Marge Bot
parent 5ec1d85494
commit 7f6cd7ac3c

View file

@ -1235,7 +1235,7 @@ gst_av1_parser_parse_sequence_header_obu (GstAV1Parser * parser,
seq_header->operating_points[i].idc = AV1_READ_BITS (br, 12);
seq_header->operating_points[i].seq_level_idx = AV1_READ_BITS (br, 5);
if (!av1_seq_level_idx_is_valid
(seq_header->operating_points[0].seq_level_idx)) {
(seq_header->operating_points[i].seq_level_idx)) {
GST_INFO ("The seq_level_idx is unsupported");
retval = GST_AV1_PARSER_BITSTREAM_ERROR;
goto error;