codecparsers: av1: Fix a level index bug in sequence.
authorHe Junyan <junyan.he@intel.com>
Tue, 28 Jul 2020 07:06:04 +0000 (15:06 +0800)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 17 Nov 2020 19:31:09 +0000 (19:31 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1464>

gst-libs/gst/codecparsers/gstav1parser.c

index 0873612145670ce088c682f024a64f709159208f..82293b478352cdc61366579b0d5f088a7bd5521e 100644 (file)
@@ -1138,7 +1138,7 @@ gst_av1_parser_parse_sequence_header_obu (GstAV1Parser * parser,
         retval = GST_AV1_PARSER_BITSTREAM_ERROR;
         goto error;
       }
-      if (seq_header->operating_points[i].seq_level_idx > GST_AV1_SEQ_LEVEL_4_0) {
+      if (seq_header->operating_points[i].seq_level_idx > GST_AV1_SEQ_LEVEL_3_3) {
         seq_header->operating_points[i].seq_tier = AV1_READ_BIT (br);
       } else {
         seq_header->operating_points[i].seq_tier = 0;