projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
084eac3
)
theoradec: make sure our buffer is big enough
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Tue, 19 Jul 2011 17:21:42 +0000
(18:21 +0100)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Tue, 19 Jul 2011 17:21:42 +0000
(18:21 +0100)
Make sure we allocate a buffer that is big enough.
ext/theora/gsttheoradec.c
patch
|
blob
|
history
diff --git
a/ext/theora/gsttheoradec.c
b/ext/theora/gsttheoradec.c
index
0ec3bf9
..
2956b49
100644
(file)
--- 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 */