Commit dce50db5d8 for ffmpeg
commit dce50db5d8f471362b57efd05390815cd5f30037
Author: James Almer <jamrial@gmail.com>
Date: Wed Oct 28 14:59:55 2026 -0300
avformat/mpegtsenc: convert MP4 style LCEVC packets into Annex B before muxing
Use the existing lcevc_metadata filter, as it does the job without the need
for an explicit bsf for this purpose (No need to insert specific NALs at
certain intervals like h264 and others).
Signed-off-by: James Almer <jamrial@gmail.com>
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index 594ade3d97..d6a48841e7 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -2452,6 +2452,7 @@ static int mpegts_check_bitstream(AVFormatContext *s, AVStream *st,
} list[] = {
{ AV_CODEC_ID_H264, "h264_mp4toannexb", 0xff, 0x01 /* configurationVersion in AVCDecoderConfigurationRecord */},
{ AV_CODEC_ID_HEVC, "hevc_mp4toannexb", 0xff, 0x01 /* configurationVersion in HEVCDecoderConfigurationRecord */},
+ { AV_CODEC_ID_LCEVC, "lcevc_metadata", 0xff, 0x01 /* configurationVersion in LCEVCDecoderConfigurationRecord */},
{ AV_CODEC_ID_VVC, "vvc_mp4toannexb", 0xf8, 0xf8 /* reserved '11111'b in VVCDecoderConfigurationRecord */},
};