changeset 8108:d9b2b39e5c06

Fix stereo MACE files
author rtognimp
date Mon, 04 Nov 2002 23:15:01 +0000
parents 6fadfa315113
children cb4c507c69aa
files libmpcodecs/ad_ffmpeg.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_ffmpeg.c	Mon Nov 04 22:45:34 2002 +0000
+++ b/libmpcodecs/ad_ffmpeg.c	Mon Nov 04 23:15:01 2002 +0000
@@ -87,12 +87,12 @@
    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)