summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorrfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-18 04:20:13 +0000
committerrfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-18 04:20:13 +0000
commit0ab4837bd5a829617a75909bcbc5e7b93a1bd7d9 (patch)
treec0bde936d7ca8fb7b70b10ad5ae125d85017376d /libmpcodecs
parent54df7e4a3e18fd212bae3bdf665cd0455f031eb6 (diff)
downloadmpv-0ab4837bd5a829617a75909bcbc5e7b93a1bd7d9.tar.bz2
mpv-0ab4837bd5a829617a75909bcbc5e7b93a1bd7d9.tar.xz
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
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/ad_libvorbis.c1
1 files changed, 1 insertions, 0 deletions
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;