diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2016-04-12 16:50:01 +0100 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2016-04-12 16:50:01 +0100 |
commit | 9cb1ed5735ec03f6331f9777e25aa2f736a9d60f (patch) | |
tree | f8a5858c56477ffd143ab41bc7e04490cb684344 /ffprobe.c | |
parent | aa9517583ea1944d65d4379936933f74d96c9cfe (diff) | |
download | ffmpeg-9cb1ed5735ec03f6331f9777e25aa2f736a9d60f.tar.gz |
ffprobe: Fix missing dec_ctx check
Missed it during the merge of ffprobe codecpar conversion.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'ffprobe.c')
-rw-r--r-- | ffprobe.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 */ |