summaryrefslogtreecommitdiff
path: root/avprobe.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-10-03 18:18:55 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-10-08 18:17:49 +0100
commita2c00d22e71d13b72828147be86aa9e961c6cae6 (patch)
treecf9e1c7cae4605c2d15912e1d4438e291bf9e301 /avprobe.c
parent147f2e91eece6b9021ff5b7f8a3b5ce053566659 (diff)
avprobe: print color properties for show_streams
Diffstat (limited to 'avprobe.c')
-rw-r--r--avprobe.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/avprobe.c b/avprobe.c
index c7b3d39cb2..c56ac27efa 100644
--- a/avprobe.c
+++ b/avprobe.c
@@ -623,6 +623,12 @@ static void show_stream(AVFormatContext *fmt_ctx, int stream_idx)
desc = av_pix_fmt_desc_get(dec_ctx->pix_fmt);
probe_str("pix_fmt", desc ? desc->name : "unknown");
probe_int("level", dec_ctx->level);
+
+ probe_str("color_range", av_color_range_name(dec_ctx->color_range));
+ probe_str("color_space", av_color_space_name(dec_ctx->colorspace));
+ probe_str("color_trc", av_color_transfer_name(dec_ctx->color_trc));
+ probe_str("color_pri", av_color_primaries_name(dec_ctx->color_primaries));
+ probe_str("chroma_loc", av_chroma_location_name(dec_ctx->chroma_sample_location));
break;
case AVMEDIA_TYPE_AUDIO: