diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c index 647b1c785e..369e3ac876 100644 --- a/libavcodec/cbs_h2645.c +++ b/libavcodec/cbs_h2645.c @@ -499,9 +499,9 @@ static int cbs_h2645_fragment_add_nals(CodedBitstreamContext *ctx, size_t size = nal->size; enum AVCodecID codec_id = ctx->codec->codec_id; -// if (codec_id == AV_CODEC_ID_HEVC && nal->nuh_layer_id > 0 && - // (nal->type < HEVC_NAL_VPS || nal->type > HEVC_NAL_PPS)) - // continue; + if (codec_id == AV_CODEC_ID_HEVC && nal->nuh_layer_id > 0 && + (nal->type < HEVC_NAL_VPS || nal->type > HEVC_NAL_PPS)) + continue; // Remove trailing zeroes. while (size > 0 && nal->data[size - 1] == 0)