100l, someone mixed up && and ||, so if allocation of only one buffers failed

that would not be detected.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25098 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2007-11-18 15:48:20 +00:00
parent 4112aa7bcd
commit 1c05db4406
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ static int control(struct af_instance_s* af, int cmd, void* arg)
int32_t* pw;
s->buf_pre_corr = realloc(s->buf_pre_corr, s->bytes_overlap * 2);
s->table_window = realloc(s->table_window, s->bytes_overlap * 2 - nch * bps * 2);
if(!s->buf_pre_corr && !s->table_window) {
if(!s->buf_pre_corr || !s->table_window) {
af_msg(AF_MSG_FATAL, "[scaletempo] Out of memory\n");
return AF_ERROR;
}