aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-11-05 20:25:25 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-11-05 20:26:10 +0100
commit30d27685b177c055f7540a6c809cf81acb22cc78 (patch)
tree80b4e7616ebe4820ad9906802277d2661a107559
parent962314fe2769dcc4eb6b950a671c30252331487a (diff)
downloadffmpeg-30d27685b177c055f7540a6c809cf81acb22cc78.tar.gz
segment: fix null ptr deref
Fixes CID732220 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/segment.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/segment.c b/libavformat/segment.c
index b6697e0940..f31b25fb36 100644
--- a/libavformat/segment.c
+++ b/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;
}