[Ffmpeg-cvslog] r7518 - in trunk/libavcodec: avcodec.h flac.c pcm.c utils.c

Baptiste Coudurier baptiste.coudurier
Mon Jan 15 01:51:14 CET 2007


Hi

michael wrote:
> Author: michael
> Date: Mon Jan 15 00:50:06 2007
> New Revision: 7518
> 
> Modified:
>    trunk/libavcodec/avcodec.h
>    trunk/libavcodec/flac.c
>    trunk/libavcodec/pcm.c
>    trunk/libavcodec/utils.c
> 
> Log:
> avcodec_decode_audio2()
> difference to avcodec_decode_audio() is that the user can pass the allocated size of the output buffer to the decoder and the decoder can check if theres enough space
> 
> 
>
> [...]
>
> Modified: trunk/libavcodec/utils.c
> ==============================================================================
> --- trunk/libavcodec/utils.c	(original)
> +++ trunk/libavcodec/utils.c	Mon Jan 15 00:50:06 2007
> @@ -918,22 +918,44 @@
>     *number of bytes used. If no frame could be decompressed,
>     *frame_size_ptr is zero. Otherwise, it is the decompressed frame
>     *size in BYTES. */
> -int avcodec_decode_audio(AVCodecContext *avctx, int16_t *samples,
> +int avcodec_decode_audio2(AVCodecContext *avctx, int16_t *samples,
>                           int *frame_size_ptr,
>                           uint8_t *buf, int buf_size)
>  {

What's the plan for 0.52 about audio decoding ?
Is something similar to avctx->get_buffer for audio wanted ?
AVFrame instead of int16_t * ?
Support 24/32 integer/float ?
Audio conversion interface using SAMPLE_FMT ?
CODEC_ID_RAWAUDIO (endianness) ?

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A.                                    http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312




More information about the ffmpeg-cvslog mailing list