[MPlayer-cvslog] r25098 - trunk/libaf/af_scaletempo.c
reimar
subversion at mplayerhq.hu
Sun Nov 18 16:48:21 CET 2007
Author: reimar
Date: Sun Nov 18 16:48:20 2007
New Revision: 25098
Log:
100l, someone mixed up && and ||, so if allocation of only one buffers failed
that would not be detected.
Modified:
trunk/libaf/af_scaletempo.c
Modified: trunk/libaf/af_scaletempo.c
==============================================================================
--- trunk/libaf/af_scaletempo.c (original)
+++ trunk/libaf/af_scaletempo.c Sun Nov 18 16:48:20 2007
@@ -367,7 +367,7 @@ static int control(struct af_instance_s*
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;
}
More information about the MPlayer-cvslog
mailing list