summaryrefslogtreecommitdiff
path: root/ffprobe.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-10 04:24:05 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-10 04:24:55 +0200
commit19b4c0ccf924366e9a61793e7334d7bd82c68f23 (patch)
treeaa7d07974d67ba288807dbf5228e40303dd9d849 /ffprobe.c
parente96fb980dcb658bb8e8a0dac2289a201b68f85b4 (diff)
downloadffmpeg-19b4c0ccf924366e9a61793e7334d7bd82c68f23.tar.gz
ffprobe: Simplify by using av_color_range_name()
Idea from: a2c00d22e71d13b72828147be86aa9e961c6cae6 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffprobe.c b/ffprobe.c
index f35b780ffa..304ec8e67d 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -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);