# HG changeset patch # User rfelker # Date 1095481213 0 # Node ID e9403636401179833fe01a3c5eef45992a800ad8 # Parent 6bd869a18d2ce4dd308831d92ecc177647c55bdb 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. diff -r 6bd869a18d2c -r e94036364011 libmpcodecs/ad_libvorbis.c --- a/libmpcodecs/ad_libvorbis.c Sat Sep 18 00:08:17 2004 +0000 +++ b/libmpcodecs/ad_libvorbis.c Sat Sep 18 04:20:13 2004 +0000 @@ -148,6 +148,7 @@ // 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;