From 0ff9a193c1c2629665621183051ffd81f3f5ff45 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 4 Mar 2007 13:49:55 +0000 Subject: [PATCH] Set format tag for float samples correctly (currently useless) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22443 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_avs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libmpdemux/demux_avs.c b/libmpdemux/demux_avs.c index ab81b0dd49..a4abf36665 100644 --- a/libmpdemux/demux_avs.c +++ b/libmpdemux/demux_avs.c @@ -326,7 +326,8 @@ static demuxer_t* demux_open_avs(demuxer_t* demuxer) sh_audio->ds = demuxer->audio; sh_audio->wf = (WAVEFORMATEX*) malloc(sizeof(WAVEFORMATEX)); - sh_audio->wf->wFormatTag = sh_audio->format = 0x1; + sh_audio->wf->wFormatTag = sh_audio->format = + (AVS->video_info->sample_type == AVS_SAMPLE_FLOAT) ? 0x3 : 0x1; sh_audio->wf->nChannels = sh_audio->channels = AVS->video_info->nchannels; sh_audio->wf->nSamplesPerSec = sh_audio->samplerate = AVS->video_info->audio_samples_per_second; sh_audio->wf->nAvgBytesPerSec = AVS->video_info->audio_samples_per_second * 4;