[FFmpeg-devel] [PATCH 3/4] ffprobe: use av_get_pix_fmt_name() instead of accessing av_pix_fmt_descriptors.

Clément Bœsch ubitux at gmail.com
Fri Sep 16 12:57:50 CEST 2011


---
 ffprobe.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ffprobe.c b/ffprobe.c
index 911507c..2f4a99e 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -417,7 +417,7 @@ static void show_stream(struct writer *w, AVFormatContext *fmt_ctx, int stream_i
                           display_aspect_ratio.num,
                           display_aspect_ratio.den);
             }
-            print_str("pix_fmt", dec_ctx->pix_fmt != PIX_FMT_NONE ? av_pix_fmt_descriptors[dec_ctx->pix_fmt].name : "unknown");
+            print_str("pix_fmt", av_x_if_null(av_get_pix_fmt_name(dec_ctx->pix_fmt), "unknown"));
             print_int("level",   dec_ctx->level);
             break;
 
-- 
1.7.6.1



More information about the ffmpeg-devel mailing list