aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpcodecs
diff options
context:
space:
mode:
authorGravatar rtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-11-04 23:15:01 +0000
committerGravatar rtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-11-04 23:15:01 +0000
commit36f33dcaa3856b11d4b5cac68f32972cb14d5036 (patch)
tree15287ec1e3617349adb5174d54c68da3ad4a17d6 /libmpcodecs
parent08b07f063c64946c09670f45d523f47126c0f71d (diff)
Fix stereo MACE files
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8109 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/ad_ffmpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpcodecs/ad_ffmpeg.c b/libmpcodecs/ad_ffmpeg.c
index 3c2ade2148..a930e0f5ca 100644
--- a/libmpcodecs/ad_ffmpeg.c
+++ b/libmpcodecs/ad_ffmpeg.c
@@ -87,12 +87,12 @@ static int init(sh_audio_t *sh_audio)
if(sh_audio->format==0x3343414D){
// MACE 3:1
sh_audio->ds->ss_div = 2*3; // 1 samples/packet
- sh_audio->ds->ss_mul = 2*1; // 1 bytes/packet
+ sh_audio->ds->ss_mul = 2*sh_audio->wf->nChannels; // 1 byte*ch/packet
} else
if(sh_audio->format==0x3643414D){
// MACE 6:1
sh_audio->ds->ss_div = 2*6; // 1 samples/packet
- sh_audio->ds->ss_mul = 2*1; // 1 bytes/packet
+ sh_audio->ds->ss_mul = 2*sh_audio->wf->nChannels; // 1 byte*ch/packet
}
// Decode at least 1 byte: (to get header filled)