gstffmpegdec: Use 64bit scaling function to avoid overflows detected in some situations.

This commit is contained in:
Edward Hervey 2009-03-09 18:17:30 +01:00
parent 146aab9dcb
commit 8cfa2c4314

View file

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