Browse Source

ffprobe: Fix missing dec_ctx check

Missed it during the merge of ffprobe codecpar conversion.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
tags/n3.1
Derek Buitenhuis 9 years ago
parent
commit
9cb1ed5735
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      ffprobe.c

+ 2
- 1
ffprobe.c View File

@@ -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 */


Loading…
Cancel
Save