avformat/vobsub: fix NULL dereference
authorClément Bœsch <u@pkh.me>
Sat, 13 Sep 2014 13:15:32 +0000 (15:15 +0200)
committerClément Bœsch <u@pkh.me>
Sat, 13 Sep 2014 13:18:11 +0000 (15:18 +0200)
(cherry picked from commit d86cf4a91de2aa9e167a73b56fb59962230e3a32)

libavformat/mpeg.c

index c53bab3..7d0be5e 100644 (file)
@@ -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;