mirror of
https://github.com/mpv-player/mpv
synced 2025-01-20 21:07:29 +01:00
libmad fix (see comment)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2433 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c1fd11363d
commit
29f7432278
@ -589,7 +589,12 @@ case AFM_VORBIS: {
|
||||
}
|
||||
|
||||
sh_audio->channels=2; // hack
|
||||
/* var. name changed in 0.13.0 (beta) (libmad/CHANGES) -- alex */
|
||||
#if (MAD_VERSION_MAJOR >= 0) && (MAD_VERSION_MINOR >= 13)
|
||||
sh_audio->samplerate=mad_frame.header.samplerate;
|
||||
#else
|
||||
sh_audio->samplerate=mad_frame.header.sfreq;
|
||||
#endif
|
||||
sh_audio->i_bps=mad_frame.header.bitrate;
|
||||
printf(__FILE__ ":%d:mad: continuing\n", __LINE__);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user