Skip to content

Commit 3e6d89c

Browse files
committed
avcodec/cbs_h2645: revert accidental change
This was erroneously included in 7e77858. Reported-by: Zhao Zhili <[email protected]> Signed-off-by: James Almer <[email protected]>
1 parent 8cf2d97 commit 3e6d89c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libavcodec/cbs_h2645.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,9 +499,9 @@ static int cbs_h2645_fragment_add_nals(CodedBitstreamContext *ctx,
499499
size_t size = nal->size;
500500
enum AVCodecID codec_id = ctx->codec->codec_id;
501501

502-
// if (codec_id == AV_CODEC_ID_HEVC && nal->nuh_layer_id > 0 &&
503-
// (nal->type < HEVC_NAL_VPS || nal->type > HEVC_NAL_PPS))
504-
// continue;
502+
if (codec_id == AV_CODEC_ID_HEVC && nal->nuh_layer_id > 0 &&
503+
(nal->type < HEVC_NAL_VPS || nal->type > HEVC_NAL_PPS))
504+
continue;
505505

506506
// Remove trailing zeroes.
507507
while (size > 0 && nal->data[size - 1] == 0)

0 commit comments

Comments
 (0)