mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
mpeg2dec: use 64bit safe scaling functions.
Got this to fail when seeking in a 14GB file (the value in bytes is bigger than 2**32).
This commit is contained in:
parent
674323b56d
commit
58b34b3553
1 changed files with 1 additions and 1 deletions
|
@ -1357,7 +1357,7 @@ gst_mpeg2dec_sink_convert (GstPad * pad, GstFormat src_format, gint64 src_value,
|
|||
case GST_FORMAT_TIME:
|
||||
if (info->sequence && info->sequence->byte_rate) {
|
||||
*dest_value =
|
||||
gst_util_uint64_scale_int (GST_SECOND, src_value,
|
||||
gst_util_uint64_scale (GST_SECOND, src_value,
|
||||
info->sequence->byte_rate);
|
||||
GST_WARNING_OBJECT (mpeg2dec, "dest_value:%" GST_TIME_FORMAT,
|
||||
GST_TIME_ARGS (*dest_value));
|
||||
|
|
Loading…
Reference in a new issue