History

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.

Anton Khirnov committed 2 years ago

Commit 52ce2d21 parent 81e9afa1 file · +0 −3Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/hevc/parse.c+0−3
@@ -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:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t