Commit 19b4c0cc authored by Michael Niedermayer's avatar Michael Niedermayer

ffprobe: Simplify by using av_color_range_name()

Idea from: a2c00d22Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e96fb980
......@@ -2112,7 +2112,7 @@ static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_id
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");
print_str ("color_range", av_color_range_name(dec_ctx->color_range));
else
print_str_opt("color_range", "N/A");
s = av_get_colorspace_name(dec_ctx->colorspace);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment