diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-08-01 18:36:50 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-08-01 18:36:50 +0000 |
commit | 1da3dc91bde1a06a5cfc1fdc8a495098cd5122be (patch) | |
tree | c593b88206f478a4199ea9b0766dc948a1724fd0 /libmpdemux/mp3_hdr.h | |
parent | fa38f52244327391383595ec27385e2e13775e36 (diff) | |
download | mpv-1da3dc91bde1a06a5cfc1fdc8a495098cd5122be.tar.bz2 mpv-1da3dc91bde1a06a5cfc1fdc8a495098cd5122be.tar.xz |
set i_bps in demux_audio for WAV and MP3 to avoid division by zero before
decoder sets it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16163 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/mp3_hdr.h')
-rw-r--r-- | libmpdemux/mp3_hdr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpdemux/mp3_hdr.h b/libmpdemux/mp3_hdr.h index 4181e2447a..6cddf0d816 100644 --- a/libmpdemux/mp3_hdr.h +++ b/libmpdemux/mp3_hdr.h @@ -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 || |