[Mplayer-cvslog] CVS: main/libmpdemux aviprint.c,1.9,1.10

Arpi of Ize arpi at mplayerhq.hu
Thu Apr 18 20:01:27 CEST 2002


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

Modified Files:
	aviprint.c 
Log Message:
show extended mp3 info

Index: aviprint.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/aviprint.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- aviprint.c	30 Oct 2001 17:03:10 -0000	1.9
+++ aviprint.c	18 Apr 2002 18:01:25 -0000	1.10
@@ -52,7 +52,6 @@
 }
 
 void print_wave_header(WAVEFORMATEX *h){
-
   printf("======= WAVE Format =======\n");
   printf("Format Tag: %d (0x%X)\n",h->wFormatTag,h->wFormatTag);
   printf("Channels: %d\n",h->nChannels);
@@ -61,6 +60,14 @@
   printf("Block align: %d\n",h->nBlockAlign);
   printf("bits/sample: %d\n",h->wBitsPerSample);
   printf("cbSize: %d\n",h->cbSize);
+  if(h->wFormatTag=0x55 && h->cbSize>=12){
+      MPEGLAYER3WAVEFORMAT* h2=h;
+      printf("mp3.wID=%d\n",h2->wID);
+      printf("mp3.fdwFlags=0x%X\n",h2->fdwFlags);
+      printf("mp3.nBlockSize=%d\n",h2->nBlockSize);
+      printf("mp3.nFramesPerBlock=%d\n",h2->nFramesPerBlock);
+      printf("mp3.nCodecDelay=%d\n",h2->nCodecDelay);
+  }
 }
 
 




More information about the MPlayer-cvslog mailing list