From 0ab4837bd5a829617a75909bcbc5e7b93a1bd7d9 Mon Sep 17 00:00:00 2001 From: rfelker Date: Sat, 18 Sep 2004 04:20:13 +0000 Subject: 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 --- libmpcodecs/ad_libvorbis.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libmpcodecs') diff --git a/libmpcodecs/ad_libvorbis.c b/libmpcodecs/ad_libvorbis.c index 3b71151c10..4eb7426053 100644 --- a/libmpcodecs/ad_libvorbis.c +++ b/libmpcodecs/ad_libvorbis.c @@ -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; -- cgit v1.2.3