[Mplayer-cvslog] CVS: main/libmpcodecs ad_ffmpeg.c,1.10,1.11
Roberto Togni CVS
rtognimp at mplayerhq.hu
Tue Nov 5 00:15:23 CET 2002
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv11698
Modified Files:
ad_ffmpeg.c
Log Message:
Fix stereo MACE files
Index: ad_ffmpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_ffmpeg.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- ad_ffmpeg.c 4 Nov 2002 18:46:53 -0000 1.10
+++ ad_ffmpeg.c 4 Nov 2002 23:15:01 -0000 1.11
@@ -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)
More information about the MPlayer-cvslog
mailing list