1
mirror of https://github.com/mpv-player/mpv synced 2024-10-30 04:46:41 +01:00

dump wav header

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7848 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-10-22 16:02:21 +00:00
parent a4aeb52659
commit 3dad4315a4

View File

@ -164,6 +164,7 @@ int demux_audio_open(demuxer_t* demuxer) {
w->wBitsPerSample = sh_audio->samplesize = stream_read_word_le(s); w->wBitsPerSample = sh_audio->samplesize = stream_read_word_le(s);
w->cbSize = 0; w->cbSize = 0;
l -= 16; l -= 16;
if(verbose>0) print_wave_header(w);
if(l) if(l)
stream_skip(s,l); stream_skip(s,l);
do do
@ -175,6 +176,7 @@ int demux_audio_open(demuxer_t* demuxer) {
} while (chunk_type != mmioFOURCC('d', 'a', 't', 'a')); } while (chunk_type != mmioFOURCC('d', 'a', 't', 'a'));
demuxer->movi_start = stream_tell(s); demuxer->movi_start = stream_tell(s);
demuxer->movi_end = s->end_pos; demuxer->movi_end = s->end_pos;
// printf("wav: %X .. %X\n",(int)demuxer->movi_start,(int)demuxer->movi_end);
} break; } break;
} }