summaryrefslogtreecommitdiff
path: root/ffprobe.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2011-09-16 12:54:51 +0200
committerClément Bœsch <ubitux@gmail.com>2011-09-22 00:22:53 +0200
commitb70fd6fa8b0892f91cf9667b82d716a2f5de91dc (patch)
tree020c34ed076ad5e1f84dfff2b9dbb54b449b0e18 /ffprobe.c
parent03d0ea0cf09a95bc8dfacc18fe038d4883f93d4d (diff)
ffprobe: use av_get_pix_fmt_name() instead of accessing av_pix_fmt_descriptors.
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffprobe.c b/ffprobe.c
index b298b603d9..a46200d493 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -416,7 +416,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;