aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2016-08-03 18:40:03 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2016-09-03 14:31:55 +0200
commit2dfd0f4b9eed8d1f7df22a6b2ebd06424fff444f (patch)
tree48348cc0089861c21eefc4110b6f68c780827113 /libavformat
parenta6a453ccd1cd1f6c9fa5819906496736d43eabf0 (diff)
downloadffmpeg-2dfd0f4b9eed8d1f7df22a6b2ebd06424fff444f.tar.gz
lavf/webm_chunk: Print an error if no header filename was provided.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/webm_chunk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/webm_chunk.c b/libavformat/webm_chunk.c
index 44a1695d5c..bfcde78e4d 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);