From 7f6cd7ac3cd426c6060226329071860128bd6b5c Mon Sep 17 00:00:00 2001 From: He Junyan Date: Tue, 12 Apr 2022 10:34:27 +0800 Subject: [PATCH] codecs: av1parser: Fix a typo in seq_level_idx check. Part-of: --- subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.c b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.c index fb1050f..e2876db 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.c @@ -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; -- 2.7.4