mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
ffprobe: Simplify by using av_color_range_name()
Idea from: a2c00d22e71d13b72828147be86aa9e961c6cae6 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e96fb980dc
commit
19b4c0ccf9
@ -2112,7 +2112,7 @@ static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_id
|
|||||||
else print_str_opt("pix_fmt", "unknown");
|
else print_str_opt("pix_fmt", "unknown");
|
||||||
print_int("level", dec_ctx->level);
|
print_int("level", dec_ctx->level);
|
||||||
if (dec_ctx->color_range != AVCOL_RANGE_UNSPECIFIED)
|
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
|
else
|
||||||
print_str_opt("color_range", "N/A");
|
print_str_opt("color_range", "N/A");
|
||||||
s = av_get_colorspace_name(dec_ctx->colorspace);
|
s = av_get_colorspace_name(dec_ctx->colorspace);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user