mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 07:33:46 +01:00
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:
parent
4112aa7bcd
commit
1c05db4406
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user