[FFmpeg-devel] [PATCH v2 1/4] avcodec/hevc_parse: keep nal->nuh_layer_id > 0

Zhao Zhili quinkblack at foxmail.com
Fri Jan 6 17:52:27 EET 2023


From: Zhao Zhili <zhilizhao at tencent.com>

Signed-off-by: Zhao Zhili <zhilizhao at tencent.com>
---
 libavcodec/hevc_parse.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libavcodec/hevc_parse.c b/libavcodec/hevc_parse.c
index 29dfd479f3..dddb293df6 100644
--- a/libavcodec/hevc_parse.c
+++ b/libavcodec/hevc_parse.c
@@ -37,8 +37,6 @@ static int hevc_decode_nal_units(const uint8_t *buf, int buf_size, HEVCParamSets
 
     for (i = 0; i < pkt.nb_nals; i++) {
         H2645NAL *nal = &pkt.nals[i];
-        if (nal->nuh_layer_id > 0)
-            continue;
 
         /* ignore everything except parameter sets and VCL NALUs */
         switch (nal->type) {
-- 
2.25.1




More information about the ffmpeg-devel mailing list