ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Fri Oct 10 
04:24:05 2014 +0200| [19b4c0ccf924366e9a61793e7334d7bd82c68f23] | committer: 
Michael Niedermayer

ffprobe: Simplify by using av_color_range_name()

Idea from: a2c00d22e71d13b72828147be86aa9e961c6cae6
Signed-off-by: Michael Niedermayer <michae...@gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=19b4c0ccf924366e9a61793e7334d7bd82c68f23
---

 ffprobe.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffprobe.c b/ffprobe.c
index f35b780..304ec8e 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);

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to