Merge branch 'wavefile-fix-flac-timelength' of https://github.com/tryphon/rivendell into tryphon-wavefile-fix-flac-timelength

This commit is contained in:
Fred Gleason 2014-10-08 18:54:17 -04:00
commit 2a0c9100f8

View File

@ -3759,6 +3759,8 @@ bool RDWaveFile::GetFlacStreamInfo()
bits_per_sample=sinfo.data.stream_info.bits_per_sample;
sample_length=sinfo.data.stream_info.total_samples;
channels=sinfo.data.stream_info.channels;
ext_time_length=(unsigned)(1000.0*(double)sample_length/(double)samples_per_sec);
time_length=ext_time_length/1000;
return true;
#else
return false;