From 0c55c6d30e0aa07b47645fafc6a817dfbfa2e85b Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sat, 12 Mar 2011 12:44:22 +0100 Subject: cmdutils: remove list_fmts(), simplify MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The function was only used in opt_sample_fmt() for listing the sample formats. Move list_fmts() functionality directly into opt_sample_fmt(). Als fix the warning: ffmpeg.c: In function ‘opt_audio_sample_fmt’: ffmpeg.c:2877: warning: passing argument 1 of ‘list_fmts’ from incompatible pointer type cmdutils.h:163: note: expected ‘void (*)(char *, int, int)’ but argument is of type ‘char * (*)(char *, int, enum AVSampleFormat)’ --- cmdutils.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'cmdutils.c') diff --git a/cmdutils.c b/cmdutils.c index d44aa9ea08..5b7b508765 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -508,16 +508,6 @@ void show_license(void) ); } -void list_fmts(void (*get_fmt_string)(char *buf, int buf_size, int fmt), int nb_fmts) -{ - int i; - char fmt_str[128]; - for (i=-1; i < nb_fmts; i++) { - get_fmt_string (fmt_str, sizeof(fmt_str), i); - fprintf(stdout, "%s\n", fmt_str); - } -} - void show_formats(void) { AVInputFormat *ifmt=NULL; -- cgit v1.2.3