mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
Fix buffer allocation problem.
Original commit message from CVS: Fix buffer allocation problem.
This commit is contained in:
parent
c13333f9e9
commit
9c3c5b3b6e
2 changed files with 3 additions and 2 deletions
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit 4dab76096cb84988dc2b6366cf5bd964fe5857d7
|
||||
Subproject commit c6bd62c43f01b2012d81dfa61dd58777c41de07a
|
|
@ -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
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue