From 1b8ef683ce742d09bd1b2f709f90a16dd10ecfa2 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 19 Jul 2011 18:21:42 +0100 Subject: [PATCH] theoradec: make sure our buffer is big enough Make sure we allocate a buffer that is big enough. --- ext/theora/gsttheoradec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/theora/gsttheoradec.c b/ext/theora/gsttheoradec.c index 0ec3bf9f71..2956b49328 100644 --- a/ext/theora/gsttheoradec.c +++ b/ext/theora/gsttheoradec.c @@ -808,11 +808,11 @@ theora_negotiate_pool (GstTheoraDec * dec, GstCaps * caps, GstVideoInfo * info) &alignment, &pool); } else { GST_DEBUG_OBJECT (dec, "didn't get downstream ALLOCATION hints"); - size = info->size; min = max = 0; prefix = 0; alignment = 0; } + size = MAX (size, info->size); if (pool == NULL) { /* we did not get a pool, make one ourselves then */