Mercurial > libavcodec.hg
diff mpegaudio.h @ 4104:04ff8026d9c0 libavcodec
dont set the sampling rate just because 1 mp3 packet header says so (fixes playback speed on some old mencoder generated avis which where then dumped to mp3)
author | michael |
---|---|
date | Mon, 30 Oct 2006 02:19:55 +0000 |
parents | c8c591fe26f8 |
children | 70f194a2ee53 |
line wrap: on
line diff
--- a/mpegaudio.h Mon Oct 30 01:29:56 2006 +0000 +++ b/mpegaudio.h Mon Oct 30 02:19:55 2006 +0000 @@ -72,7 +72,7 @@ #endif int l2_select_table(int bitrate, int nb_channels, int freq, int lsf); -int mpa_decode_header(AVCodecContext *avctx, uint32_t head); +int mpa_decode_header(AVCodecContext *avctx, uint32_t head, int *sample_rate); void ff_mpa_synth_init(MPA_INT *window); void ff_mpa_synth_filter(MPA_INT *synth_buf_ptr, int *synth_buf_offset, MPA_INT *window, int *dither_state,