[FFmpeg-cvslog] r20812 - in trunk: cmdutils.c cmdutils.h ffmpeg.c
stefano
subversion
Sat Dec 12 18:45:20 CET 2009
Author: stefano
Date: Sat Dec 12 18:45:20 2009
New Revision: 20812
Log:
Move list_fmts() from ffmpeg.c to cmdutils.{h,c}, so that it can be
shared by the other ff* tools code.
Modified:
trunk/cmdutils.c
trunk/cmdutils.h
trunk/ffmpeg.c
Modified: trunk/cmdutils.c
==============================================================================
--- trunk/cmdutils.c Sat Dec 12 18:34:24 2009 (r20811)
+++ trunk/cmdutils.c Sat Dec 12 18:45:20 2009 (r20812)
@@ -413,6 +413,16 @@ 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;
Modified: trunk/cmdutils.h
==============================================================================
--- trunk/cmdutils.h Sat Dec 12 18:34:24 2009 (r20811)
+++ trunk/cmdutils.h Sat Dec 12 18:45:20 2009 (r20812)
@@ -131,6 +131,8 @@ void set_context_opts(void *ctx, void *o
void print_error(const char *filename, int err);
+void list_fmts(void (*get_fmt_string)(char *buf, int buf_size, int fmt), int nb_fmts);
+
/**
* Prints the program banner to stderr. The banner contents depend on the
* current version of the repository and of the libav* libraries used by
Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c Sat Dec 12 18:34:24 2009 (r20811)
+++ trunk/ffmpeg.c Sat Dec 12 18:45:20 2009 (r20812)
@@ -2564,16 +2564,6 @@ static void opt_frame_pad_right(const ch
}
}
-static 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);
- }
-}
-
static void opt_frame_pix_fmt(const char *arg)
{
if (strcmp(arg, "list")) {
More information about the ffmpeg-cvslog
mailing list