Mercurial > libavcodec.hg
diff mpegaudio.h @ 8420:2b0d01be134f libavcodec
Change mpeg audio parser so it only sets frame_size, channels and bit_rate
after it has a few valid frames.
Fixes issue762
author | michael |
---|---|
date | Sun, 21 Dec 2008 23:50:16 +0000 |
parents | 8195c970d077 |
children | 9aac5b3cecbd |
line wrap: on
line diff
--- a/mpegaudio.h Sun Dec 21 21:53:42 2008 +0000 +++ b/mpegaudio.h Sun Dec 21 23:50:16 2008 +0000 @@ -128,7 +128,7 @@ } HuffTable; int ff_mpa_l2_select_table(int bitrate, int nb_channels, int freq, int lsf); -int ff_mpa_decode_header(AVCodecContext *avctx, uint32_t head, int *sample_rate); +int ff_mpa_decode_header(AVCodecContext *avctx, uint32_t head, int *sample_rate, int *channels, int *frame_size, int *bitrate); 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,