[FFmpeg-devel] [PATCH]lavf(webm_chunk: Print an error if no header filename was provided.

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Aug 3 19:42:09 EEST 2016


Hi!

Attached patch gives users (and testers) a chance to know why webm_chunk 
muxing fails.

Please comment, Carl Eugen
-------------- next part --------------
From 675562a4d2215af36f512d3d2c608ec8dc16a73c Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <cehoyos at ag.or.at>
Date: Wed, 3 Aug 2016 18:40:03 +0200
Subject: [PATCH] lavf/webm_chunk: Print an error if no header filename was
 provided.

---
 libavformat/webm_chunk.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/webm_chunk.c b/libavformat/webm_chunk.c
index 9db4fab..e75f929 100644
--- a/libavformat/webm_chunk.c
+++ b/libavformat/webm_chunk.c
@@ -92,6 +92,7 @@ static int get_chunk_filename(AVFormatContext *s, int is_header, char *filename)
     }
     if (is_header) {
         if (!wc->header_filename) {
+            av_log(oc, AV_LOG_ERROR, "No header filename provided\n");
             return AVERROR(EINVAL);
         }
         av_strlcpy(filename, wc->header_filename, strlen(wc->header_filename) + 1);
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list