summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <edward@centricular.com>2017-11-05 12:16:13 +0100
committerEdward Hervey <bilboed@bilboed.com>2017-12-01 10:02:03 +0100
commitc664a8a85e23cc44f8bfc8efa4bfff58ddb82e84 (patch)
tree05fbf4ccc17da64c0aea6ee6647d56da74e519c2
parentea4d9256a35a6b49dfd5e708f459da10f2474866 (diff)
downloadgstreamer-plugins-base-c664a8a85e23cc44f8bfc8efa4bfff58ddb82e84.tar.gz
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.
-rw-r--r--ext/ogg/gstoggstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ogg/gstoggstream.c b/ext/ogg/gstoggstream.c
index d2c38c7b1..75c3c4329 100644
--- a/ext/ogg/gstoggstream.c
+++ b/ext/ogg/gstoggstream.c
@@ -1570,7 +1570,7 @@ static gint64
packet_duration_ogm (GstOggStream * pad, ogg_packet * packet)
{
const guint8 *data;
- int samples;
+ gint64 samples;
int offset;
int n;