diff options
author | vectronic <hello.vectronic@gmail.com> | 2020-04-29 17:14:33 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2020-05-02 19:14:08 +0200 |
commit | a75924ec88c107b3ee1acb8522724eca2bdb1d38 (patch) | |
tree | f956f17a98cfc8cafd5809f5e1af1bf6dcc7c6cf /fftools/ffprobe.c | |
parent | e16e3e63f0a96b4e0ec32972c975bc0e339a49d1 (diff) | |
download | ffmpeg-a75924ec88c107b3ee1acb8522724eca2bdb1d38.tar.gz |
fftools/ffprobe: show closed caption info in the stream dump
Signed-off-by: vectronic <hello.vectronic@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'fftools/ffprobe.c')
-rw-r--r-- | fftools/ffprobe.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 840fcb71e2..5515e1b31b 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -2547,6 +2547,7 @@ static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_id if (dec_ctx) { print_int("coded_width", dec_ctx->coded_width); print_int("coded_height", dec_ctx->coded_height); + print_int("closed_captions", !!(dec_ctx->properties & FF_CODEC_PROPERTY_CLOSED_CAPTIONS)); } #endif print_int("has_b_frames", par->video_delay); @@ -2951,6 +2952,7 @@ static int open_input_file(InputFile *ifile, const char *filename, ist->dec_ctx->pkt_timebase = stream->time_base; ist->dec_ctx->framerate = stream->avg_frame_rate; #if FF_API_LAVF_AVCTX + ist->dec_ctx->properties = stream->codec->properties; ist->dec_ctx->coded_width = stream->codec->coded_width; ist->dec_ctx->coded_height = stream->codec->coded_height; #endif |