diff mbox series

[FFmpeg-devel,10/23] lavc/hevcdec/parse: process NALUs with nuh_layer_id>0

Message ID 20240914111036.17164-11-anton@khirnov.net
State New
Headers show
Series [FFmpeg-devel,01/23] compat: drop gcc, suncc, and pthreads stdatomic emulation | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Anton Khirnov Sept. 14, 2024, 10:45 a.m. UTC
Otherwise parameter sets from extradata with nuh_layer_id>0 would be
ignored. Needed for upcoming MV-HEVC support.
---
 libavcodec/hevc/parse.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/hevc/parse.c b/libavcodec/hevc/parse.c
index ad84b7b152..29f21a5966 100644
--- a/libavcodec/hevc/parse.c
+++ b/libavcodec/hevc/parse.c
@@ -38,9 +38,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) {
         case HEVC_NAL_VPS: