Mercurial > mplayer.hg
diff libmpdemux/mp3_hdr.h @ 16162:b5c2254d13f8
set i_bps in demux_audio for WAV and MP3 to avoid division by zero before
decoder sets it.
author | reimar |
---|---|
date | Mon, 01 Aug 2005 18:36:50 +0000 |
parents | 980910eb6f0c |
children | 6ac1ece1f9fe |
line wrap: on
line diff
--- a/libmpdemux/mp3_hdr.h Mon Aug 01 13:17:28 2005 +0000 +++ b/libmpdemux/mp3_hdr.h Mon Aug 01 18:36:50 2005 +0000 @@ -1,7 +1,7 @@ -int mp_get_mp3_header(unsigned char* hbuf,int* chans, int* freq, int* spf, int* mpa_layer); +int mp_get_mp3_header(unsigned char* hbuf,int* chans, int* freq, int* spf, int* mpa_layer, int* br); -#define mp_decode_mp3_header(hbuf) mp_get_mp3_header(hbuf,NULL,NULL,NULL,NULL) +#define mp_decode_mp3_header(hbuf) mp_get_mp3_header(hbuf,NULL,NULL,NULL,NULL,NULL) static inline int mp_check_mp3_header(unsigned int head){ if( (head & 0x0000e0ff) != 0x0000e0ff ||