[FFmpeg-devel] [PATCH+RFC] AVFrame for audio

Michael Niedermayer michaelni
Sun Jul 11 12:24:18 CEST 2010


On Sun, Jul 11, 2010 at 11:12:56AM +0100, M?ns Rullg?rd wrote:
> Peter Ross <pross at xvid.org> writes:
[...]
> > @@ -3326,6 +3341,7 @@ AVFrame *avcodec_alloc_frame(void);
> >  int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic);
> >  void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic);
> >  int avcodec_default_reget_buffer(AVCodecContext *s, AVFrame *pic);
> > +int avcodec_default_reget_audio_buffer(AVCodecContext *s, AVFrame *frame, int nb_samples);
> 
> I've always wondered why those functions are exposed here.  I can't
> think of any valid reason for anyone ever to call them directly.

they are usefull for implementations of get_buffer()/release_buffer()
that do addtional stuff but otherwise call the defaults
or as fallback when allocation of a direct rendering buffer fails

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you think the mosad wants you dead since a long time then you are either
wrong or dead since a long time.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100711/140a6ebb/attachment.pgp>



More information about the ffmpeg-devel mailing list