1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

showfiltfmts: use av_get_pix_fmt_name()

Use av_get_pix_fmt_name() rather than access
av_pix_fmt_descriptors. Improve readability.
This commit is contained in:
Stefano Sabatini 2011-06-07 02:18:19 +02:00
parent 40da61eff5
commit 4ae28eb853

View File

@ -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);