This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit af3b6af836802507995717f182989d064244cb35 Author: James Almer <[email protected]> AuthorDate: Thu Oct 29 15:26:51 2026 -0300 Commit: James Almer <[email protected]> CommitDate: Sat Oct 31 20:38:49 2026 -0300 avformat: add a raw LCEVC muxer Signed-off-by: James Almer <[email protected]> --- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/rawenc.c | 25 +++++++++++++++++++++++++ 3 files changed, 27 insertions(+) diff --git a/libavformat/Makefile b/libavformat/Makefile index e012ce5ae6..e479c5c67c 100644 --- a/libavformat/Makefile +++ b/libavformat/Makefile @@ -360,6 +360,7 @@ OBJS-$(CONFIG_LATM_MUXER) += latmenc.o rawenc.o OBJS-$(CONFIG_LC3_DEMUXER) += lc3.o OBJS-$(CONFIG_LC3_MUXER) += lc3.o OBJS-$(CONFIG_LCEVC_DEMUXER) += lcevcdec.o +OBJS-$(CONFIG_LCEVC_MUXER) += rawenc.o OBJS-$(CONFIG_LMLM4_DEMUXER) += lmlm4.o OBJS-$(CONFIG_LOAS_DEMUXER) += loasdec.o rawdec.o OBJS-$(CONFIG_LUODAT_DEMUXER) += luodatdec.o diff --git a/libavformat/allformats.c b/libavformat/allformats.c index c18072c082..3306d71bf7 100644 --- a/libavformat/allformats.c +++ b/libavformat/allformats.c @@ -264,6 +264,7 @@ extern const FFOutputFormat ff_latm_muxer; extern const FFInputFormat ff_lc3_demuxer; extern const FFOutputFormat ff_lc3_muxer; extern const FFInputFormat ff_lcevc_demuxer; +extern const FFOutputFormat ff_lcevc_muxer; extern const FFInputFormat ff_lmlm4_demuxer; extern const FFInputFormat ff_loas_demuxer; extern const FFInputFormat ff_luodat_demuxer; diff --git a/libavformat/rawenc.c b/libavformat/rawenc.c index cf298d223d..40b6c2d40b 100644 --- a/libavformat/rawenc.c +++ b/libavformat/rawenc.c @@ -472,6 +472,31 @@ const FFOutputFormat ff_evc_muxer = { }; #endif +#if CONFIG_LCEVC_MUXER +static int lcevc_check_bitstream(AVFormatContext *s, AVStream *st, + const AVPacket *pkt) +{ + if (pkt->size >= 5 && AV_RB32(pkt->data) != 0x0000001 && + AV_RB24(pkt->data) != 0x000001) + return ff_stream_add_bitstream_filter(st, "lcevc_metadata", NULL); + return 1; +} + +const FFOutputFormat ff_lcevc_muxer = { + .p.name = "lcevc", + .p.long_name = NULL_IF_CONFIG_SMALL("raw LCEVC video"), + .p.extensions = "lcevc", + .p.audio_codec = AV_CODEC_ID_NONE, + .p.video_codec = AV_CODEC_ID_LCEVC, + .p.subtitle_codec = AV_CODEC_ID_NONE, + .flags_internal = FF_OFMT_FLAG_MAX_ONE_OF_EACH | + FF_OFMT_FLAG_ONLY_DEFAULT_CODECS, + .write_packet = ff_raw_write_packet, + .check_bitstream = lcevc_check_bitstream, + .p.flags = AVFMT_NOTIMESTAMPS, +}; +#endif + #if CONFIG_M4V_MUXER const FFOutputFormat ff_m4v_muxer = { .p.name = "m4v", -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
