aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-06-07 02:18:19 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-06-07 12:44:51 +0200
commit4ae28eb85351528e37ded59336e3f763497813b7 (patch)
treef8d12405c8fa64c544c0b735a5bebd606d796dbf
parent40da61eff5acaaaec7d1247f7be4bb10fca30c1c (diff)
downloadffmpeg-4ae28eb85351528e37ded59336e3f763497813b7.tar.gz
showfiltfmts: use av_get_pix_fmt_name()
Use av_get_pix_fmt_name() rather than access av_pix_fmt_descriptors. Improve readability.
-rw-r--r--tools/lavfi-showfiltfmts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lavfi-showfiltfmts.c b/tools/lavfi-showfiltfmts.c
index 19bb6f6819..cc19e00a8c 100644
--- a/tools/lavfi-showfiltfmts.c
+++ b/tools/lavfi-showfiltfmts.c
@@ -81,7 +81,7 @@ int main(int argc, char **argv)
for (j = 0; j < fmts->format_count; j++)
printf("INPUT[%d] %s: %s\n",
i, filter_ctx->filter->inputs[i].name,
- av_pix_fmt_descriptors[fmts->formats[j]].name);
+ av_get_pix_fmt_name(fmts->formats[j]));
}
/* print the supported formats in output */
@@ -90,7 +90,7 @@ int main(int argc, char **argv)
for (j = 0; j < fmts->format_count; j++)
printf("OUTPUT[%d] %s: %s\n",
i, filter_ctx->filter->outputs[i].name,
- av_pix_fmt_descriptors[fmts->formats[j]].name);
+ av_get_pix_fmt_name(fmts->formats[j]));
}
avfilter_free(filter_ctx);