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

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


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

avformat/vobsub: fix NULL dereference

(cherry picked from commit d86cf4a91de2aa9e167a73b56fb59962230e3a32)

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

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

diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index c53bab3..7d0be5e 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