mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
oggstream: Use proper type for sample calculation
If we are going to return a (potentially) 64bit integer, don't use a 32bit one for calculation, otherwise we could end up exceeding the maximum size of a 32bit int.
This commit is contained in:
parent
7f5ffcaa49
commit
af48682d44
1 changed files with 1 additions and 1 deletions
|
@ -1570,7 +1570,7 @@ static gint64
|
||||||
packet_duration_ogm (GstOggStream * pad, ogg_packet * packet)
|
packet_duration_ogm (GstOggStream * pad, ogg_packet * packet)
|
||||||
{
|
{
|
||||||
const guint8 *data;
|
const guint8 *data;
|
||||||
int samples;
|
gint64 samples;
|
||||||
int offset;
|
int offset;
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue