40 char channel_layout_str[128] =
"";
46 sscanf(args,
"%"PRId64
":%s", &priv->
sample_rate, channel_layout_str);
53 if (*channel_layout_str)
55 && sscanf(channel_layout_str,
"%"PRId64, &priv->
channel_layout) != 1) {
76 "sample_rate:%"PRId64
" channel_layout:%"PRId64
" channel_layout_description:'%s'\n",
106 .
outputs = avfilter_asrc_anullsrc_outputs,
AVFilter avfilter_asrc_anullsrc
static const AVFilterPad outputs[]
#define AV_CH_LAYOUT_STEREO
static int request_frame(AVFilterLink *link)
const char * name
Pad name.
static int config_props(AVFilterLink *outlink)
A filter pad used for either input or output.
A link between two filters.
int sample_rate
samples per second
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
void * priv
private data for use by the filter
int av_get_channel_layout_nb_channels(uint64_t channel_layout)
Return the number of channels in the channel layout.
void av_log(void *avcl, int level, const char *fmt,...)
common internal API header
audio channel layout utility functions
AVFilterContext * src
source filter
static const AVFilterPad avfilter_asrc_anullsrc_outputs[]
static int init(AVFilterContext *ctx, const char *args)
static const AVFilterPad inputs[]
const char * name
filter name
uint64_t channel_layout
channel layout of current buffer (see libavutil/channel_layout.h)
uint64_t av_get_channel_layout(const char *name)
Return a channel layout id that matches name, or 0 if no match is found.
void av_get_channel_layout_string(char *buf, int buf_size, int nb_channels, uint64_t channel_layout)
Return a description of a channel layout.