Commit 30d27685 authored by Michael Niedermayer's avatar Michael Niedermayer

segment: fix null ptr deref

Fixes CID732220
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 962314fe
...@@ -386,7 +386,7 @@ static int seg_write_header(AVFormatContext *s) ...@@ -386,7 +386,7 @@ static int seg_write_header(AVFormatContext *s)
} }
if (seg->oformat->flags & AVFMT_NOFILE) { if (seg->oformat->flags & AVFMT_NOFILE) {
av_log(s, AV_LOG_ERROR, "format %s not supported.\n", av_log(s, AV_LOG_ERROR, "format %s not supported.\n",
oc->oformat->name); seg->oformat->name);
ret = AVERROR(EINVAL); ret = AVERROR(EINVAL);
goto fail; goto fail;
} }
......
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