This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 0510aff11b avformat/hlsenc: fix compile error when mp4 is disabled
0510aff11b is described below
commit 0510aff11bebd2659ee514fefa5e017559217ba3
Author: Jack Lau <[email protected]>
AuthorDate: Wed Apr 1 09:50:12 2026 +0800
Commit: Jack Lau <[email protected]>
CommitDate: Tue Apr 7 02:20:34 2026 +0000
avformat/hlsenc: fix compile error when mp4 is disabled
Regression since dc4c7989704a204dc81eb381261dd5be59930cdb
Handle the case where mp4 is disabled since mp4 as
an optional dependency of hls_muxer.
Signed-off-by: Jack Lau <[email protected]>
---
libavformat/hlsenc.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 8eaab37a2c..de49c059d2 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -2971,8 +2971,12 @@ static int hls_init(AVFormatContext *s)
if (vs->has_video > 1)
av_log(s, AV_LOG_WARNING, "More than a single video stream
present, expect issues decoding it.\n");
if (hls->segment_type == SEGMENT_TYPE_FMP4) {
+#if CONFIG_MP4_MUXER
EXTERN const FFOutputFormat ff_mp4_muxer;
vs->oformat = &ff_mp4_muxer.p;
+#else
+ return AVERROR_MUXER_NOT_FOUND;
+#endif
} else {
EXTERN const FFOutputFormat ff_mpegts_muxer;
vs->oformat = &ff_mpegts_muxer.p;
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]