mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-08 08:10:12 +00:00
ffprobe: Fix missing dec_ctx check
Missed it during the merge of ffprobe codecpar conversion. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
parent
aa9517583e
commit
9cb1ed5735
@ -2190,6 +2190,7 @@ static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_id
|
|||||||
if (s) print_str ("codec_type", s);
|
if (s) print_str ("codec_type", s);
|
||||||
else print_str_opt("codec_type", "unknown");
|
else print_str_opt("codec_type", "unknown");
|
||||||
#if FF_API_LAVF_AVCTX
|
#if FF_API_LAVF_AVCTX
|
||||||
|
if (dec_ctx)
|
||||||
print_q("codec_time_base", dec_ctx->time_base, '/');
|
print_q("codec_time_base", dec_ctx->time_base, '/');
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user