[FFmpeg-cvslog] avformat/vobsub: fix NULL dereference

Clément Bœsch git at videolan.org
Sat Sep 13 15:16:33 CEST 2014


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sat Sep 13 15:15:32 2014 +0200| [d86cf4a91de2aa9e167a73b56fb59962230e3a32] | committer: Clément Bœsch

avformat/vobsub: fix NULL dereference

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

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

diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index 82cb415..b153727 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -783,7 +783,7 @@ static int vobsub_read_header(AVFormatContext *s)
 
             while (*p == ' ')
                 p++;
-            av_log(s, AV_LOG_DEBUG, "IDX stream[%d] name=%s\n", st->id, p);
+            av_log(s, AV_LOG_DEBUG, "IDX stream[%d] name=%s\n", stream_id, p);
             av_strlcpy(alt, p, sizeof(alt));
             header_parsed = 1;
 



More information about the ffmpeg-cvslog mailing list