Mercurial > mplayer.hg
comparison libmpdemux/demux_avs.c @ 22425:dacdd07fec16
Set format tag for float samples correctly (currently useless)
author | reimar |
---|---|
date | Sun, 04 Mar 2007 13:49:55 +0000 |
parents | dd99089c892b |
children | 807484e8d248 |
comparison
equal
deleted
inserted
replaced
22424:dacfc7692083 | 22425:dacdd07fec16 |
---|---|
324 if (demuxer->audio->id == 0) | 324 if (demuxer->audio->id == 0) |
325 demuxer->audio->sh = sh_audio; | 325 demuxer->audio->sh = sh_audio; |
326 sh_audio->ds = demuxer->audio; | 326 sh_audio->ds = demuxer->audio; |
327 | 327 |
328 sh_audio->wf = (WAVEFORMATEX*) malloc(sizeof(WAVEFORMATEX)); | 328 sh_audio->wf = (WAVEFORMATEX*) malloc(sizeof(WAVEFORMATEX)); |
329 sh_audio->wf->wFormatTag = sh_audio->format = 0x1; | 329 sh_audio->wf->wFormatTag = sh_audio->format = |
330 (AVS->video_info->sample_type == AVS_SAMPLE_FLOAT) ? 0x3 : 0x1; | |
330 sh_audio->wf->nChannels = sh_audio->channels = AVS->video_info->nchannels; | 331 sh_audio->wf->nChannels = sh_audio->channels = AVS->video_info->nchannels; |
331 sh_audio->wf->nSamplesPerSec = sh_audio->samplerate = AVS->video_info->audio_samples_per_second; | 332 sh_audio->wf->nSamplesPerSec = sh_audio->samplerate = AVS->video_info->audio_samples_per_second; |
332 sh_audio->wf->nAvgBytesPerSec = AVS->video_info->audio_samples_per_second * 4; | 333 sh_audio->wf->nAvgBytesPerSec = AVS->video_info->audio_samples_per_second * 4; |
333 sh_audio->samplesize = 2; | 334 sh_audio->samplesize = 2; |
334 sh_audio->wf->nBlockAlign = sh_audio->channels * sh_audio->samplesize; | 335 sh_audio->wf->nBlockAlign = sh_audio->channels * sh_audio->samplesize; |