Commit 2dfd0f4b authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

lavf/webm_chunk: Print an error if no header filename was provided.

parent a6a453cc
...@@ -92,6 +92,7 @@ static int get_chunk_filename(AVFormatContext *s, int is_header, char *filename) ...@@ -92,6 +92,7 @@ static int get_chunk_filename(AVFormatContext *s, int is_header, char *filename)
} }
if (is_header) { if (is_header) {
if (!wc->header_filename) { if (!wc->header_filename) {
av_log(oc, AV_LOG_ERROR, "No header filename provided\n");
return AVERROR(EINVAL); return AVERROR(EINVAL);
} }
av_strlcpy(filename, wc->header_filename, strlen(wc->header_filename) + 1); av_strlcpy(filename, wc->header_filename, strlen(wc->header_filename) + 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment