Otherwise parameter sets from extradata with nuh_layer_id>0 would be ignored. Needed for upcoming MV-HEVC support.
Showing the changes to libavcodec/hevc/parse.c (1 of 1 file). Show all
Unified · Split
| @@ -38,9 +38,6 @@ static int hevc_decode_nal_units(const uint8_t *buf, int buf_size, HEVCParamSets · 37 unmodified lines | |||
| 38 | 38 | ||
| 39 | for (i = 0; i < pkt.nb_nals; i++) { | 39 | for (i = 0; i < pkt.nb_nals; i++) { |
| 40 | H2645NAL *nal = &pkt.nals[i]; | 40 | H2645NAL *nal = &pkt.nals[i]; |
| 41 | if (nal->nuh_layer_id > 0) | ||
| 42 | continue; | ||
| 43 | |||
| 44 | /* ignore everything except parameter sets and VCL NALUs */ | 41 | /* ignore everything except parameter sets and VCL NALUs */ |
| 45 | switch (nal->type) { | 42 | switch (nal->type) { |
| 46 | case HEVC_NAL_VPS: | 43 | case HEVC_NAL_VPS: |