@ -53,11 +53,13 @@ extern const uint8_t ff_mpeg4audio_channels[8];
* @ param [ in ] c MPEG4AudioConfig structure to fill .
* @ param [ in ] c MPEG4AudioConfig structure to fill .
* @ param [ in ] gb Extradata from container .
* @ param [ in ] gb Extradata from container .
* @ param [ in ] sync_extension look for a sync extension after config if true .
* @ param [ in ] sync_extension look for a sync extension after config if true .
* @ param [ in ] logctx opaque struct starting with an AVClass element , used for logging .
* @ return On error - 1 is returned , on success AudioSpecificConfig bit index in extradata .
* @ return On error - 1 is returned , on success AudioSpecificConfig bit index in extradata .
*/
*/
int ff_mpeg4audio_get_config_gb ( MPEG4AudioConfig * c , GetBitContext * gb ,
int ff_mpeg4audio_get_config_gb ( MPEG4AudioConfig * c , GetBitContext * gb ,
int sync_extension ) ;
int sync_extension , void * logctx ) ;
# if LIBAVCODEC_VERSION_MAJOR < 59
/**
/**
* Parse MPEG - 4 systems extradata from a raw buffer to retrieve audio configuration .
* Parse MPEG - 4 systems extradata from a raw buffer to retrieve audio configuration .
* @ param [ in ] c MPEG4AudioConfig structure to fill .
* @ param [ in ] c MPEG4AudioConfig structure to fill .
@ -68,6 +70,19 @@ int ff_mpeg4audio_get_config_gb(MPEG4AudioConfig *c, GetBitContext *gb,
*/
*/
int avpriv_mpeg4audio_get_config ( MPEG4AudioConfig * c , const uint8_t * buf ,
int avpriv_mpeg4audio_get_config ( MPEG4AudioConfig * c , const uint8_t * buf ,
int bit_size , int sync_extension ) ;
int bit_size , int sync_extension ) ;
# endif
/**
* Parse MPEG - 4 systems extradata from a raw buffer to retrieve audio configuration .
* @ param [ in ] c MPEG4AudioConfig structure to fill .
* @ param [ in ] buf Extradata from container .
* @ param [ in ] size Extradata size in bytes .
* @ param [ in ] sync_extension look for a sync extension after config if true .
* @ param [ in ] logctx opaque struct starting with an AVClass element , used for logging .
* @ return negative AVERROR code on error , AudioSpecificConfig bit index in extradata on success .
*/
int avpriv_mpeg4audio_get_config2 ( MPEG4AudioConfig * c , const uint8_t * buf ,
int size , int sync_extension , void * logctx ) ;
enum AudioObjectType {
enum AudioObjectType {
AOT_NULL ,
AOT_NULL ,