Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
8419:6a12ba62978a | 8420:2b0d01be134f |
---|---|
126 const uint8_t *bits; | 126 const uint8_t *bits; |
127 const uint16_t *codes; | 127 const uint16_t *codes; |
128 } HuffTable; | 128 } HuffTable; |
129 | 129 |
130 int ff_mpa_l2_select_table(int bitrate, int nb_channels, int freq, int lsf); | 130 int ff_mpa_l2_select_table(int bitrate, int nb_channels, int freq, int lsf); |
131 int ff_mpa_decode_header(AVCodecContext *avctx, uint32_t head, int *sample_rate); | 131 int ff_mpa_decode_header(AVCodecContext *avctx, uint32_t head, int *sample_rate, int *channels, int *frame_size, int *bitrate); |
132 void ff_mpa_synth_init(MPA_INT *window); | 132 void ff_mpa_synth_init(MPA_INT *window); |
133 void ff_mpa_synth_filter(MPA_INT *synth_buf_ptr, int *synth_buf_offset, | 133 void ff_mpa_synth_filter(MPA_INT *synth_buf_ptr, int *synth_buf_offset, |
134 MPA_INT *window, int *dither_state, | 134 MPA_INT *window, int *dither_state, |
135 OUT_INT *samples, int incr, | 135 OUT_INT *samples, int incr, |
136 int32_t sb_samples[SBLIMIT]); | 136 int32_t sb_samples[SBLIMIT]); |