[FFmpeg-devel] [PATCH] Add asrc abuffer - audio buffer source filter
Diego Biurrun
diego
Tue Aug 31 15:08:48 CEST 2010
On Thu, Aug 26, 2010 at 01:48:15AM -0700, S.N. Hemanth Meenakshisundaram wrote:
>
> --- /dev/null
> +++ b/libavfilter/asrc_abuffer.c
> @@ -0,0 +1,164 @@
> +typedef struct {
> + unsigned int init_sample_fmt; ///< initial sample format indicated by client
> + int64_t init_ch_layout; ///< initial channel layout indicated by client
> + AVFifoBuffer *fifo; ///< fifo buffer of audio frame pointers
FIFO
> + AVFilterLink *link = ctx->outputs[0];
> + ABufferSourceContext *abuffer = ctx->priv;
Vertically align the =.
> + if (args && (sscanf(args, "%15[a-z0-9]:%15[a-z0-9]", sample_fmt_str, ch_layout_str) != 2))
> + {
if ( ) {
Please be consistent with yourself
> +static int config_props(AVFilterLink *link)
> +{
> + ABufferSourceContext *abuffer = link->src->priv;
> + link->format = abuffer->init_sample_fmt;
> + link->channel_layout = abuffer->init_ch_layout;
Vertically align the =.
Diego
More information about the ffmpeg-devel
mailing list