diff options
author | Tobias Rapp <t.rapp@noa-audio.com> | 2014-06-17 09:01:07 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-24 00:35:16 +0200 |
commit | f6e772f9b5cf9040c268caed8b027a9c186812ef (patch) | |
tree | f39cf545ce48f1602394424238504e225e88d650 /ffprobe.c | |
parent | 9326caa5faa1dffb89bc718194a618a16caa780d (diff) | |
download | ffmpeg-f6e772f9b5cf9040c268caed8b027a9c186812ef.tar.gz |
ffprobe: add color_range and color_space to stream output
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffprobe.c')
-rw-r--r-- | ffprobe.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -2058,6 +2058,13 @@ static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_id if (s) print_str ("pix_fmt", s); else print_str_opt("pix_fmt", "unknown"); print_int("level", dec_ctx->level); + if (dec_ctx->color_range != AVCOL_RANGE_UNSPECIFIED) + print_str ("color_range", dec_ctx->color_range == AVCOL_RANGE_MPEG ? "tv": "pc"); + else + print_str_opt("color_range", "N/A"); + s = av_get_colorspace_name(dec_ctx->colorspace); + if (s) print_str ("color_space", s); + else print_str_opt("color_space", "unknown"); if (dec_ctx->timecode_frame_start >= 0) { char tcbuf[AV_TIMECODE_STR_SIZE]; av_timecode_make_mpeg_tc_string(tcbuf, dec_ctx->timecode_frame_start); |