1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-02 13:12:05 +00:00

show extended mp3 info

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5689 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-04-18 18:01:25 +00:00
parent 1c24ffe51b
commit 7b025193f3

View File

@ -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);
}
}