Browse Source

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

tags/n3.2
Carl Eugen Hoyos 9 years ago
parent
commit
2dfd0f4b9e
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/webm_chunk.c

+ 1
- 0
libavformat/webm_chunk.c 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);


Loading…
Cancel
Save