[FFmpeg-cvslog] segment: fix null ptr deref

Michael Niedermayer git at videolan.org
Mon Nov 5 20:52:18 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Nov  5 20:25:25 2012 +0100| [30d27685b177c055f7540a6c809cf81acb22cc78] | committer: Michael Niedermayer

segment: fix null ptr deref

Fixes CID732220
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=30d27685b177c055f7540a6c809cf81acb22cc78
---

 libavformat/segment.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/segment.c b/libavformat/segment.c
index b6697e0..f31b25f 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;
     }



More information about the ffmpeg-cvslog mailing list