mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 06:03:45 +01:00
If demuxer does not fill codecdata try to get if from waveformatex
(fixes audio format 0xff) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12474 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
fc2bcda11d
commit
c29c6444cd
@ -55,6 +55,11 @@ static int init(sh_audio_t *sh)
|
||||
faac_hdec = faacDecOpen();
|
||||
|
||||
// If we don't get the ES descriptor, try manual config
|
||||
if(!sh->codecdata_len && sh->wf) {
|
||||
sh->codecdata_len = sh->wf->cbSize;
|
||||
sh->codecdata = (char*)(sh->wf+1);
|
||||
mp_msg(MSGT_DECAUDIO,MSGL_DBG2,"FAAD: codecdata extracted from WAVEFORMATEX\n");
|
||||
}
|
||||
if(!sh->codecdata_len) {
|
||||
#if 1
|
||||
faacDecConfigurationPtr faac_conf;
|
||||
|
Loading…
Reference in New Issue
Block a user