X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffprobe.c;h=1329466fb44b9d36d7c23f4eaf9de2f0d91ce3fd;hb=689e02808d09bd0441ec199cb1a8953ac7c666f6;hp=baeca1dd3ba29664ee80877184d7704444d21c89;hpb=4a993335812f7e9b2088145c7d043c01019c5d04;p=ffmpeg diff --git a/ffprobe.c b/ffprobe.c index baeca1dd3ba..1329466fb44 100644 --- a/ffprobe.c +++ b/ffprobe.c @@ -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);