Commit 420e58de authored by Laurent Aimar's avatar Laurent Aimar

Fixed potential use of uninitialized value (format.c).

parent 02c0032a
...@@ -170,14 +170,12 @@ static block_t *Filter(filter_t *filter, block_t *block) ...@@ -170,14 +170,12 @@ static block_t *Filter(filter_t *filter, block_t *block)
sys->pre(block); sys->pre(block);
for (int i = 0; i < 2; i++) { for (int i = 0; i < 2; i++) {
block_t *out;
if (sys->directs[i]) { if (sys->directs[i]) {
out = sys->directs[i](filter, block); block = sys->directs[i](filter, block);
assert(out == block);
} else if (sys->indirects[i]) { } else if (sys->indirects[i]) {
int dst_size = sys->indirects_ratio[i][1] * int dst_size = sys->indirects_ratio[i][1] *
(block->i_buffer / sys->indirects_ratio[i][0]); (block->i_buffer / sys->indirects_ratio[i][0]);
out = filter_NewAudioBuffer(filter, dst_size); block_t *out = filter_NewAudioBuffer(filter, dst_size);
if (!out) { if (!out) {
block_Release(block); block_Release(block);
return NULL; return NULL;
...@@ -191,8 +189,8 @@ static block_t *Filter(filter_t *filter, block_t *block) ...@@ -191,8 +189,8 @@ static block_t *Filter(filter_t *filter, block_t *block)
sys->indirects[i](out, block); sys->indirects[i](out, block);
block_Release(block); block_Release(block);
block = out;
} }
block = out;
} }
if (sys->post) if (sys->post)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment