From af48682d449260a22e64ad974d289e999f3b9f42 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sun, 5 Nov 2017 12:16:13 +0100 Subject: [PATCH] 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 5da5b7c..b973e29 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; -- 2.7.4