segment: fix null ptr deref

Fixes CID732220
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/6/merge
Michael Niedermayer 12 years ago
parent 962314fe27
commit 30d27685b1
  1. 2
      libavformat/segment.c

@ -386,7 +386,7 @@ static int seg_write_header(AVFormatContext *s)
}
if (seg->oformat->flags & AVFMT_NOFILE) {
av_log(s, AV_LOG_ERROR, "format %s not supported.\n",
oc->oformat->name);
seg->oformat->name);
ret = AVERROR(EINVAL);
goto fail;
}

Loading…
Cancel
Save