projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bf083b
)
Fix buffer allocation problem.
author
David Schleef
<ds@schleef.org>
Sat, 29 Jun 2002 00:40:37 +0000
(
00:40
+0000)
committer
David Schleef
<ds@schleef.org>
Sat, 29 Jun 2002 00:40:37 +0000
(
00:40
+0000)
Original commit message from CVS:
Fix buffer allocation problem.
gst-libs/gst/resample/resample.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/resample/resample.c
b/gst-libs/gst/resample/resample.c
index
3d94484
..
7ced0f5
100644
(file)
--- a/
gst-libs/gst/resample/resample.c
+++ b/
gst-libs/gst/resample/resample.c
@@
-165,7
+165,7
@@
void resample_scale(resample_t * r, void *i_buf, unsigned int i_size)
r->i_start, r->i_end, r->o_start);
}
- if ((r->filter_length + r->i_samples)*
2
*2 > r->buffer_len) {
+ if ((r->filter_length + r->i_samples)*
sizeof(double)
*2 > r->buffer_len) {
int size = (r->filter_length + r->i_samples) * sizeof(double) * 2;
if(r->verbose){
@@
-882,3
+882,4
@@
GstPluginDesc plugin_desc = {
"gstresample",
plugin_init
};
+