projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15e55ae
)
aacdec: Remove check which is always true.
author
Andre Noll
<maan@systemlinux.org>
Thu, 17 Apr 2014 23:11:05 +0000
(23:11 +0000)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Sat, 25 Mar 2017 10:54:36 +0000
(11:54 +0100)
Just prior to the test we set ret to consumed, so it is known to
be non-negative.
aacdec_filter.c
patch
|
blob
|
history
diff --git
a/aacdec_filter.c
b/aacdec_filter.c
index bbaeb7995eb78a7c63e5c35edc0841ef26921448..7e6f5b21c5d87cb2131e07db8c32d91a636d19ea 100644
(file)
--- a/
aacdec_filter.c
+++ b/
aacdec_filter.c
@@
-165,11
+165,9
@@
next_buffer:
btr_add_output(btr_buf, loaded, btrn);
success:
ret = consumed;
- if (ret >= 0) {
- padd->consumed_total += ret;
- btr_consume(btrn, ret);
- goto next_buffer;
- }
+ padd->consumed_total += ret;
+ btr_consume(btrn, ret);
+ goto next_buffer;
err:
assert(ret < 0);
btr_remove_node(&fn->btrn);