35 char channel_layout_str[128] =
"";
41 sscanf(args,
"%"PRId64
":%s", &priv->
sample_rate, channel_layout_str);
48 if (*channel_layout_str)
50 && sscanf(channel_layout_str,
"%"PRId64, &priv->
channel_layout) != 1) {
71 "sample_rate:%"PRId64
" channel_layout:%"PRId64
" channel_layout_description:'%s'\n",
AVFilter avfilter_asrc_anullsrc
#define AV_CH_LAYOUT_STEREO
static int request_frame(AVFilterLink *link)
static int config_props(AVFilterLink *outlink)
audio conversion routines
A filter pad used for either input or output.
A link between two filters.
#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,...)
AVFilterContext * src
source filter
int64_t sample_rate
samples per second
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
const char * name
filter name
static int init(AVFilterContext *ctx, const char *args, void *opaque)
uint64_t channel_layout
channel layout of current buffer (see libavutil/audioconvert.h)
uint64_t av_get_channel_layout(const char *name)
Return a channel layout id that matches name, 0 if no match.
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.