mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-07-19 14:17:42 +02:00
Merge branch 'wavefile-fix-flac-timelength' of https://github.com/tryphon/rivendell into tryphon-wavefile-fix-flac-timelength
This commit is contained in:
commit
2a0c9100f8
@ -3759,6 +3759,8 @@ bool RDWaveFile::GetFlacStreamInfo()
|
|||||||
bits_per_sample=sinfo.data.stream_info.bits_per_sample;
|
bits_per_sample=sinfo.data.stream_info.bits_per_sample;
|
||||||
sample_length=sinfo.data.stream_info.total_samples;
|
sample_length=sinfo.data.stream_info.total_samples;
|
||||||
channels=sinfo.data.stream_info.channels;
|
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;
|
return true;
|
||||||
#else
|
#else
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user