@ -17,8 +17,8 @@ extern "C" {
# define AV_STRINGIFY(s) AV_TOSTRING(s)
# define AV_STRINGIFY(s) AV_TOSTRING(s)
# define AV_TOSTRING(s) #s
# define AV_TOSTRING(s) #s
# define LIBAVCODEC_VERSION_INT ((51<<16)+(11 <<8)+0)
# define LIBAVCODEC_VERSION_INT ((51<<16)+(12 <<8)+0)
# define LIBAVCODEC_VERSION 51.11 .0
# define LIBAVCODEC_VERSION 51.12 .0
# define LIBAVCODEC_BUILD LIBAVCODEC_VERSION_INT
# define LIBAVCODEC_BUILD LIBAVCODEC_VERSION_INT
# define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION)
# define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION)
@ -2451,6 +2451,17 @@ int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, v
*/
*/
int avcodec_open ( AVCodecContext * avctx , AVCodec * codec ) ;
int avcodec_open ( AVCodecContext * avctx , AVCodec * codec ) ;
/**
* Decode an audio frame .
*
* @ param avctx the codec context .
* @ param samples output buffer , 16 byte aligned
* @ param frame_size_ptr the output buffer size in bytes , zero if no frame could be compressed
* @ param buf input buffer , 16 byte aligned
* @ param buf_size the input buffer size
* @ return 0 if successful , - 1 if not .
*/
int avcodec_decode_audio ( AVCodecContext * avctx , int16_t * samples ,
int avcodec_decode_audio ( AVCodecContext * avctx , int16_t * samples ,
int * frame_size_ptr ,
int * frame_size_ptr ,
uint8_t * buf , int buf_size ) ;
uint8_t * buf , int buf_size ) ;