]> git.tue.mpg.de Git - paraslash.git/commitdiff
aacdec: Remove check which is always true.
authorAndre Noll <maan@systemlinux.org>
Thu, 17 Apr 2014 23:11:05 +0000 (23:11 +0000)
committerAndre 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

index bbaeb7995eb78a7c63e5c35edc0841ef26921448..7e6f5b21c5d87cb2131e07db8c32d91a636d19ea 100644 (file)
@@ -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);