From: Andre Noll Date: Thu, 17 Apr 2014 23:06:37 +0000 (+0000) Subject: aacdec: Remove superfluous assignment. X-Git-Tag: v0.6.0~7^2~11 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=3cb003cf915d9042f8d84a523b6f3b79a5703aa6;p=paraslash.git aacdec: Remove superfluous assignment. Jumping to the success label sets ret to consumed. ret is not used if there are samples available, so this is safe. --- diff --git a/aacdec_filter.c b/aacdec_filter.c index a5355d10..121aa262 100644 --- a/aacdec_filter.c +++ b/aacdec_filter.c @@ -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++) {