[MPlayer-cvslog] r22443 - trunk/libmpdemux/demux_avs.c

reimar subversion at mplayerhq.hu
Sun Mar 4 14:49:55 CET 2007


Author: reimar
Date: Sun Mar  4 14:49:55 2007
New Revision: 22443

Modified:
   trunk/libmpdemux/demux_avs.c

Log:
Set format tag for float samples correctly (currently useless)


Modified: trunk/libmpdemux/demux_avs.c
==============================================================================
--- trunk/libmpdemux/demux_avs.c	(original)
+++ trunk/libmpdemux/demux_avs.c	Sun Mar  4 14:49:55 2007
@@ -326,7 +326,8 @@ static demuxer_t* demux_open_avs(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;



More information about the MPlayer-cvslog mailing list