]> git.sesse.net Git - ffmpeg/commitdiff
ffprobe: Fix missing dec_ctx check
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>
Tue, 12 Apr 2016 15:50:01 +0000 (16:50 +0100)
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>
Tue, 12 Apr 2016 15:50:01 +0000 (16:50 +0100)
Missed it during the merge of ffprobe codecpar conversion.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
ffprobe.c

index 4dfb833b3f9ea5524c3c24f47d1a1eaa69c3a632..7dc81008b1c57746efdb96739c9627d952ce3101 100644 (file)
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -2190,7 +2190,8 @@ static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_id
     if (s) print_str    ("codec_type", s);
     else   print_str_opt("codec_type", "unknown");
 #if FF_API_LAVF_AVCTX
-    print_q("codec_time_base", dec_ctx->time_base, '/');
+    if (dec_ctx)
+        print_q("codec_time_base", dec_ctx->time_base, '/');
 #endif
 
     /* print AVI/FourCC tag */