mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 18:35:35 +00:00
theoradec: make sure our buffer is big enough
Make sure we allocate a buffer that is big enough.
This commit is contained in:
parent
084eac3a77
commit
1b8ef683ce
1 changed files with 1 additions and 1 deletions
|
@ -808,11 +808,11 @@ theora_negotiate_pool (GstTheoraDec * dec, GstCaps * caps, GstVideoInfo * info)
|
||||||
&alignment, &pool);
|
&alignment, &pool);
|
||||||
} else {
|
} else {
|
||||||
GST_DEBUG_OBJECT (dec, "didn't get downstream ALLOCATION hints");
|
GST_DEBUG_OBJECT (dec, "didn't get downstream ALLOCATION hints");
|
||||||
size = info->size;
|
|
||||||
min = max = 0;
|
min = max = 0;
|
||||||
prefix = 0;
|
prefix = 0;
|
||||||
alignment = 0;
|
alignment = 0;
|
||||||
}
|
}
|
||||||
|
size = MAX (size, info->size);
|
||||||
|
|
||||||
if (pool == NULL) {
|
if (pool == NULL) {
|
||||||
/* we did not get a pool, make one ourselves then */
|
/* we did not get a pool, make one ourselves then */
|
||||||
|
|
Loading…
Reference in a new issue