mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
gstffmpegdec: Use 64bit scaling function to avoid overflows detected in some situations.
This commit is contained in:
parent
146aab9dcb
commit
8cfa2c4314
1 changed files with 1 additions and 1 deletions
|
@ -1834,7 +1834,7 @@ gst_ffmpegdec_audio_frame (GstFFMpegDec * ffmpegdec,
|
|||
*
|
||||
* 1) calculate based on number of samples
|
||||
*/
|
||||
in_duration = gst_util_uint64_scale_int (have_data, GST_SECOND,
|
||||
in_duration = gst_util_uint64_scale (have_data, GST_SECOND,
|
||||
ffmpegdec->format.audio.depth * ffmpegdec->format.audio.channels *
|
||||
ffmpegdec->format.audio.samplerate);
|
||||
|
||||
|
|
Loading…
Reference in a new issue