On Mon, Jan 25, 2021 at 10:21 PM Nuo Mi <nuomi2...@gmail.com> wrote: > > On Mon, Jan 25, 2021 at 10:17 PM Nuo Mi <nuomi2...@gmail.com> wrote: > >> --- >> libavcodec/cbs_h2645.c | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c >> index 6f3abf6b0b..da541407cf 100644 >> --- a/libavcodec/cbs_h2645.c >> +++ b/libavcodec/cbs_h2645.c >> @@ -494,8 +494,9 @@ static int >> cbs_h2645_fragment_add_nals(CodedBitstreamContext *ctx, >> const H2645NAL *nal = &packet->nals[i]; >> AVBufferRef *ref; >> size_t size = nal->size; >> + enum AVCodecID codec_id = ctx->codec->codec_id; >> >> - if (nal->nuh_layer_id > 0) >> + if (codec_id != AV_CODEC_ID_VVC && nal->nuh_layer_id > 0) >> > Hi Mark, > Could you explain why we need this for other codecs? > thanks >
Hi Mark, Any insight on this? Thanks continue; >> >> // Remove trailing zeroes. >> -- >> 2.25.1 >> >> _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".