[FFmpeg-cvslog] ffprobe: Fix missing dec_ctx check

Derek Buitenhuis git at videolan.org
Tue Apr 12 17:50:34 CEST 2016


ffmpeg | branch: master | Derek Buitenhuis <derek.buitenhuis at gmail.com> | Tue Apr 12 16:50:01 2016 +0100| [9cb1ed5735ec03f6331f9777e25aa2f736a9d60f] | committer: Derek Buitenhuis

ffprobe: Fix missing dec_ctx check

Missed it during the merge of ffprobe codecpar conversion.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>

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

 ffprobe.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ffprobe.c b/ffprobe.c
index 4dfb833..7dc8100 100644
--- 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 */



More information about the ffmpeg-cvslog mailing list