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

This commit is contained in:
Carl Eugen Hoyos 2016-08-03 18:40:03 +02:00
parent a6a453ccd1
commit 2dfd0f4b9e
1 changed files with 1 additions and 0 deletions

View File

@ -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);