mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
audiocdsrc: guard aginst overflow
An audio CD may contain about a tenth of the samples 32 bit can represent, so it doesn't seem likely this will be hit in practice. Coverity 1139805
This commit is contained in:
parent
374e756eee
commit
dda777803c
1 changed files with 1 additions and 1 deletions
|
@ -519,7 +519,7 @@ gst_audio_cd_src_convert (GstAudioCdSrc * src, GstFormat src_format,
|
|||
goto wrong_value;
|
||||
}
|
||||
src_format = GST_FORMAT_DEFAULT;
|
||||
src_val = src->priv->tracks[src_val].start * SAMPLES_PER_SECTOR;
|
||||
src_val = src->priv->tracks[src_val].start * (gint64) SAMPLES_PER_SECTOR;
|
||||
} else if (src_format == sector_format) {
|
||||
src_format = GST_FORMAT_DEFAULT;
|
||||
src_val = src_val * SAMPLES_PER_SECTOR;
|
||||
|
|
Loading…
Reference in a new issue