@ -119,7 +119,7 @@ int avpriv_mpegaudio_decode_header(MPADecodeHeader *s, uint32_t header)
return 0 ;
return 0 ;
}
}
int avpriv_mpa_decode_header2 ( uint32_t head , int * sample_rate , int * channels , int * frame_size , int * bit_rate , enum AVCodecID * codec_id )
int ff_mpa_decode_header ( uint32_t head , int * sample_rate , int * channels , int * frame_size , int * bit_rate , enum AVCodecID * codec_id )
{
{
MPADecodeHeader s1 , * s = & s1 ;
MPADecodeHeader s1 , * s = & s1 ;
@ -153,7 +153,14 @@ int avpriv_mpa_decode_header2(uint32_t head, int *sample_rate, int *channels, in
return s - > frame_size ;
return s - > frame_size ;
}
}
# if LIBAVCODEC_VERSION_MAJOR < 58
int avpriv_mpa_decode_header2 ( uint32_t head , int * sample_rate , int * channels , int * frame_size , int * bit_rate , enum AVCodecID * codec_id )
{
return ff_mpa_decode_header ( head , sample_rate , channels , frame_size , bit_rate , codec_id ) ;
}
int avpriv_mpa_decode_header ( AVCodecContext * avctx , uint32_t head , int * sample_rate , int * channels , int * frame_size , int * bit_rate )
int avpriv_mpa_decode_header ( AVCodecContext * avctx , uint32_t head , int * sample_rate , int * channels , int * frame_size , int * bit_rate )
{
{
return avpriv_mpa_decode_header2 ( head , sample_rate , channels , frame_size , bit_rate , & avctx - > codec_id ) ;
return ff_mpa_decode_header ( head , sample_rate , channels , frame_size , bit_rate , & avctx - > codec_id ) ;
}
}
# endif