[FFmpeg-devel] [PATCH] anullsrc: implement a request_frame callback for returning frames

Michael Niedermayer michaelni at gmx.at
Sun Sep 18 17:41:10 CEST 2011


On Sun, Sep 18, 2011 at 12:46:09PM +0200, Stefano Sabatini wrote:
> On date Saturday 2011-09-17 16:06:50 +0200, Michael Niedermayer encoded:
> > On Sat, Sep 17, 2011 at 12:56:13PM +0200, Stefano Sabatini wrote:
> > > This is mainly useful for filters (like the sox synth), which
> > > overwrite the content of the passed data.
> > > ---
> > >  doc/filters.texi            |   10 ++++++++--
> > >  libavfilter/asrc_anullsrc.c |   25 +++++++++++++++++++++----
> > >  2 files changed, 29 insertions(+), 6 deletions(-)
> > 
> > LGTM
> 
> Pushed.
> 
> > i wonder if we want some way for the next filter to request a specific
> > number of samples if the source filter is able to do that easily
> 
> request_samples(..., int nb_samples);
> ?

yes, but as said it was just an idea
and if we really try this nb_samples=0 could mean "dont care"

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The real ebay dictionary, page 2
"100% positive feedback" - "All either got their money back or didnt complain"
"Best seller ever, very honest" - "Seller refunded buyer after failed scam"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110918/946a47f1/attachment.asc>


More information about the ffmpeg-devel mailing list