lavc/hevcdec/parse: process NALUs with nuh_layer_id>0

Otherwise parameter sets from extradata with nuh_layer_id>0 would be
ignored. Needed for upcoming MV-HEVC support.
This commit is contained in:
Anton Khirnov 2024-06-07 08:36:31 +02:00
parent 81e9afa6c2
commit 52ce2d2a04

View File

@ -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++) { for (i = 0; i < pkt.nb_nals; i++) {
H2645NAL *nal = &pkt.nals[i]; H2645NAL *nal = &pkt.nals[i];
if (nal->nuh_layer_id > 0)
continue;
/* ignore everything except parameter sets and VCL NALUs */ /* ignore everything except parameter sets and VCL NALUs */
switch (nal->type) { switch (nal->type) {
case HEVC_NAL_VPS: case HEVC_NAL_VPS: