changeset 13374:e94036364011

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.
author rfelker
date Sat, 18 Sep 2004 04:20:13 +0000
parents 6bd869a18d2c
children 460281609f28
files libmpcodecs/ad_libvorbis.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;