1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-09 08:27:18 +00:00

fix reimar's 10l...no actually imho it's arpi's 100l for writing the

old bad init_audio_codec code that replaced all the values set by the
demuxer with "safe" defaults. no idea where this actually belongs --
here or the various demuxers -- but at least it works again now.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13375 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rfelker 2004-09-18 04:20:13 +00:00
parent 54df7e4a3e
commit 0ab4837bd5

View File

@ -148,6 +148,7 @@ static int init(sh_audio_t *sh)
// Setup the decoder
sh->channels=ov->vi.channels;
sh->samplerate=ov->vi.rate;
sh->samplesize=2;
// assume 128kbit if bitrate not specified in the header
sh->i_bps=((ov->vi.bitrate_nominal>0) ? ov->vi.bitrate_nominal : 128000)/8;
sh->context = ov;