From 1c05db440674a01d75abf2cd1c42cc368bd11147 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 18 Nov 2007 15:48:20 +0000 Subject: [PATCH] 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 --- libaf/af_scaletempo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libaf/af_scaletempo.c b/libaf/af_scaletempo.c index 674952ceb3..b2de4c33ef 100644 --- a/libaf/af_scaletempo.c +++ b/libaf/af_scaletempo.c @@ -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; }