mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Move log_callback_help to cmdutils.[hc], for allowing sharing.
Originally committed as revision 25149 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
4792d1e792
commit
1790d3b330
@ -56,6 +56,11 @@ struct SwsContext *sws_opts;
|
|||||||
|
|
||||||
const int this_year = 2010;
|
const int this_year = 2010;
|
||||||
|
|
||||||
|
void log_callback_help(void* ptr, int level, const char* fmt, va_list vl)
|
||||||
|
{
|
||||||
|
vfprintf(stdout, fmt, vl);
|
||||||
|
}
|
||||||
|
|
||||||
double parse_number_or_die(const char *context, const char *numstr, int type, double min, double max)
|
double parse_number_or_die(const char *context, const char *numstr, int type, double min, double max)
|
||||||
{
|
{
|
||||||
char *tail;
|
char *tail;
|
||||||
|
@ -44,6 +44,12 @@ extern AVCodecContext *avcodec_opts[AVMEDIA_TYPE_NB];
|
|||||||
extern AVFormatContext *avformat_opts;
|
extern AVFormatContext *avformat_opts;
|
||||||
extern struct SwsContext *sws_opts;
|
extern struct SwsContext *sws_opts;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Trivial log callback.
|
||||||
|
* Only suitable for show_help and similar since it lacks prefix handling.
|
||||||
|
*/
|
||||||
|
void log_callback_help(void* ptr, int level, const char* fmt, va_list vl);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fallback for options that are not explicitly handled, these will be
|
* Fallback for options that are not explicitly handled, these will be
|
||||||
* parsed through AVOptions.
|
* parsed through AVOptions.
|
||||||
|
9
ffmpeg.c
9
ffmpeg.c
@ -3870,15 +3870,6 @@ static void opt_intra_matrix(const char *arg)
|
|||||||
parse_matrix_coeffs(intra_matrix, arg);
|
parse_matrix_coeffs(intra_matrix, arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Trivial log callback.
|
|
||||||
* Only suitable for show_help and similar since it lacks prefix handling.
|
|
||||||
*/
|
|
||||||
static void log_callback_help(void* ptr, int level, const char* fmt, va_list vl)
|
|
||||||
{
|
|
||||||
vfprintf(stdout, fmt, vl);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void show_usage(void)
|
static void show_usage(void)
|
||||||
{
|
{
|
||||||
printf("Hyper fast Audio and Video encoder\n");
|
printf("Hyper fast Audio and Video encoder\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user