aacdec: Remove superfluous assignment.
authorAndre Noll <maan@systemlinux.org>
Thu, 17 Apr 2014 23:06:37 +0000 (23:06 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 25 Mar 2017 10:54:36 +0000 (11:54 +0100)
Jumping to the success label sets ret to consumed. ret is not used if
there are samples available, so this is safe.

aacdec_filter.c

index a5355d10cf12604440523387bc5168c8c0a76276..121aa262f71d51bcbf6c1ddbc4328adc4d3e9b62 100644 (file)
@@ -153,9 +153,8 @@ next_buffer:
        padd->error_count = 0;
        //PARA_CRIT_LOG("decoder ate %lu\n", padd->frame_info.bytesconsumed);
        consumed += padd->frame_info.bytesconsumed;
-       ret = consumed;
        if (!padd->frame_info.samples)
-               goto out;
+               goto success;
        btr_buf = para_malloc(2 * padd->frame_info.samples);
        loaded = 0;
        for (i = 0; i < padd->frame_info.samples; i++) {