1
0
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:
Fred Gleason 2021-10-06 13:07:32 -04:00
parent 49cbc37d8d
commit 19d0cb27f7
2 changed files with 6 additions and 3 deletions

@ -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) {