mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
lavf/webm_chunk: Print an error if no header filename was provided.
This commit is contained in:
parent
a6a453ccd1
commit
2dfd0f4b9e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user