[Mplayer-cvslog] CVS: main/libmpcodecs ad_ffmpeg.c,1.9,1.10

Arpi of Ize arpi at mplayerhq.hu
Mon Nov 4 19:47:13 CET 2002


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv32023

Modified Files:
	ad_ffmpeg.c 
Log Message:
MACE fix


Index: ad_ffmpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_ffmpeg.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- ad_ffmpeg.c	29 Oct 2002 16:40:45 -0000	1.9
+++ ad_ffmpeg.c	4 Nov 2002 18:46:53 -0000	1.10
@@ -82,6 +82,18 @@
         return 0;
     }
    mp_msg(MSGT_DECAUDIO,MSGL_V,"INFO: libavcodec init OK!\n");
+   
+//   printf("\nFOURCC: 0x%X\n",sh_audio->format);
+   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
+   } 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
+   }
 
    // Decode at least 1 byte:  (to get header filled)
    x=decode_audio(sh_audio,sh_audio->a_buffer,1,sh_audio->a_buffer_size);




More information about the MPlayer-cvslog mailing list