]> git.sesse.net Git - ffmpeg/blobdiff - avprobe.c
lavu: Add av_gettime_relative
[ffmpeg] / avprobe.c
index c7b3d39cb2d86a1d7ed8db249d38f0095cc980a6..5fc9ad56943dc22447a1c70b699089536d812c8d 100644 (file)
--- a/avprobe.c
+++ b/avprobe.c
@@ -181,7 +181,7 @@ static void ini_print_object_header(const char *name)
     }
 
     avio_printf(probe_out, "%s", name);
-    if (el && el->type == ARRAY)
+    if (el->type == ARRAY)
         avio_printf(probe_out, ".%"PRId64"", el->nb_elems);
     avio_printf(probe_out, "]\n");
 }
@@ -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: