diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index 0a66e3a336..9d8005c145 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -3460,6 +3460,8 @@ qtif_type_find (GstTypeFind * tf, gpointer unused) } offset += size; + if (offset + 8 >= G_MAXINT64) + break; if (++rounds > QTIF_MAXROUNDS) break; }