Commit 1b8ef683 authored by Wim Taymans's avatar Wim Taymans

theoradec: make sure our buffer is big enough

Make sure we allocate a buffer that is big enough.
parent 084eac3a
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment