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

pull/230/head
Carl Eugen Hoyos 8 years ago
parent a6a453ccd1
commit 2dfd0f4b9e
  1. 1
      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);

Loading…
Cancel
Save