segment: fix null ptr deref
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 5 Nov 2012 19:25:25 +0000 (20:25 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 5 Nov 2012 19:26:10 +0000 (20:26 +0100)
Fixes CID732220
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/segment.c

index b6697e0..f31b25f 100644 (file)
@@ -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;
     }