From c664a8a85e23cc44f8bfc8efa4bfff58ddb82e84 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sun, 5 Nov 2017 12:16:13 +0100 Subject: 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. --- ext/ogg/gstoggstream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.1