From f78f2135fa49e19855c2028b6865657d42d511f1 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 13 Oct 2023 23:23:27 -0500 Subject: [PATCH] Don't strictly enforce picture data following the first PPS in debug mode --- src/VideoDepacketizer.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/VideoDepacketizer.c b/src/VideoDepacketizer.c index 5ec1f6e..33faf73 100644 --- a/src/VideoDepacketizer.c +++ b/src/VideoDepacketizer.c @@ -202,7 +202,6 @@ void validateDecodeUnitForPlayback(PDECODE_UNIT decodeUnit) { LC_ASSERT_VT(decodeUnit->bufferList->next != NULL); LC_ASSERT_VT(decodeUnit->bufferList->next->bufferType == BUFFER_TYPE_PPS); LC_ASSERT_VT(decodeUnit->bufferList->next->next != NULL); - LC_ASSERT_VT(decodeUnit->bufferList->next->next->bufferType == BUFFER_TYPE_PICDATA); } else if (NegotiatedVideoFormat & VIDEO_FORMAT_MASK_H265) { // HEVC IDR frames should have an VPS, SPS, PPS, then picture data @@ -212,9 +211,6 @@ void validateDecodeUnitForPlayback(PDECODE_UNIT decodeUnit) { LC_ASSERT_VT(decodeUnit->bufferList->next->next != NULL); LC_ASSERT_VT(decodeUnit->bufferList->next->next->bufferType == BUFFER_TYPE_PPS); LC_ASSERT_VT(decodeUnit->bufferList->next->next->next != NULL); - - // We get 2 sets of VPS, SPS, and PPS NALUs in HDR mode. - // FIXME: Should we normalize this or something for clients? } else if (NegotiatedVideoFormat & VIDEO_FORMAT_MASK_AV1) { // We don't parse the AV1 bitstream