mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-14 08:39:31 +02:00
2021-10-06 Fred Gleason <fredg@paravelsystems.com>
* Fixed an arithmetic overflow bug in 'RDWaveFile' that could cause the play length of MPEG-encoded to be incorrectly calculated. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
49cbc37d8d
commit
19d0cb27f7
@ -20813,3 +20813,6 @@
|
||||
2021-10-05 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Increased the import process timeout for the WebGet service
|
||||
to 1200 seconds.
|
||||
2021-10-06 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Fixed an arithmetic overflow bug in 'RDWaveFile' that could
|
||||
cause the play length of MPEG-encoded to be incorrectly calculated.
|
||||
|
@ -3867,9 +3867,9 @@ bool RDWaveFile::GetMpegHeader(int fd,int offset)
|
||||
time_length=
|
||||
total_frame_quan*__samples_per_frame[version_index][layer_index]/
|
||||
__samplerates[version_index][samprate_index];
|
||||
ext_time_length=1000*total_frame_quan*
|
||||
__samples_per_frame[version_index][layer_index]/
|
||||
__samplerates[version_index][samprate_index];
|
||||
ext_time_length=1000*(int64_t)total_frame_quan*
|
||||
(int64_t)__samples_per_frame[version_index][layer_index]/
|
||||
(int64_t)__samplerates[version_index][samprate_index];
|
||||
}
|
||||
}
|
||||
if(total_frame_quan<0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user