[FFmpeg-cvslog] avformat/hls: Print input format in error message

Michael Niedermayer git at videolan.org
Thu Feb 27 19:09:25 EET 2025


ffmpeg | branch: release/4.3 | Michael Niedermayer <michael at niedermayer.cc> | Tue Jan 28 12:51:58 2025 +0100| [486e46719e2ce8899b1d6c9d7acf9bab5470f05e] | committer: Michael Niedermayer

avformat/hls: Print input format in error message

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit d8455331302c72cde2f0b72f255004a91189dd93)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=486e46719e2ce8899b1d6c9d7acf9bab5470f05e
---

 libavformat/hls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/hls.c b/libavformat/hls.c
index e94c4f9ae3..5057f4867e 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -739,7 +739,7 @@ static int test_segment(AVFormatContext *s, const AVInputFormat *in_fmt, struct
             matchF = 3;
 
         if (!(matchA & matchF)) {
-            av_log(s, AV_LOG_ERROR, "detected format extension %s mismatches allowed extensions in url %s\n", in_fmt->extensions ? in_fmt->extensions : "none", seg->url);
+            av_log(s, AV_LOG_ERROR, "detected format %s extension %s mismatches allowed extensions in url %s\n", in_fmt->name, in_fmt->extensions ? in_fmt->extensions : "none", seg->url);
             return AVERROR_INVALIDDATA;
         }
     }



More information about the ffmpeg-cvslog mailing list