summaryrefslogtreecommitdiffstats
path: root/libmpdemux/aviprint.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-18 18:01:25 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-18 18:01:25 +0000
commit7b025193f3a9a1a4ad0951fb26bf8421802bf440 (patch)
treee2606b07ec905f9669a79be381b4112d34bfcf78 /libmpdemux/aviprint.c
parent1c24ffe51b1bc8d7c544ad2081d7cfb94f8f45fb (diff)
downloadmpv-7b025193f3a9a1a4ad0951fb26bf8421802bf440.tar.bz2
mpv-7b025193f3a9a1a4ad0951fb26bf8421802bf440.tar.xz
show extended mp3 info
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5689 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/aviprint.c')
-rw-r--r--libmpdemux/aviprint.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libmpdemux/aviprint.c b/libmpdemux/aviprint.c
index 69f2cfa06d..abd37cd975 100644
--- a/libmpdemux/aviprint.c
+++ b/libmpdemux/aviprint.c
@@ -52,7 +52,6 @@ void print_strh(AVIStreamHeader *h){
}
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 @@ void print_wave_header(WAVEFORMATEX *h){
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);
+ }
}