Skip to content

Commit

Permalink
ffprobe: Simplify by using av_color_range_name()
Browse files Browse the repository at this point in the history
Idea from: a2c00d2
Signed-off-by: Michael Niedermayer <[email protected]>
  • Loading branch information
michaelni committed Oct 10, 2014
1 parent e96fb98 commit 19b4c0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffprobe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 19b4c0c

Please sign in to comment.