segment: fix null ptr deref
Fixes CID732220 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user