1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

avcodec/cbs_h2645: revert accidental change

This was erroneously included in 7e778586e7.

Reported-by: Zhao Zhili <quinkblack@foxmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2024-12-26 15:45:30 -03:00
parent 8cf2d97280
commit 3e6d89cd97

View File

@@ -499,9 +499,9 @@ static int cbs_h2645_fragment_add_nals(CodedBitstreamContext *ctx,
size_t size = nal->size; size_t size = nal->size;
enum AVCodecID codec_id = ctx->codec->codec_id; enum AVCodecID codec_id = ctx->codec->codec_id;
// if (codec_id == AV_CODEC_ID_HEVC && nal->nuh_layer_id > 0 && if (codec_id == AV_CODEC_ID_HEVC && nal->nuh_layer_id > 0 &&
// (nal->type < HEVC_NAL_VPS || nal->type > HEVC_NAL_PPS)) (nal->type < HEVC_NAL_VPS || nal->type > HEVC_NAL_PPS))
// continue; continue;
// Remove trailing zeroes. // Remove trailing zeroes.
while (size > 0 && nal->data[size - 1] == 0) while (size > 0 && nal->data[size - 1] == 0)