[FFmpeg-cvslog] alacdec: remove unneeded local variable

Justin Ruggles git at videolan.org
Thu Oct 27 01:46:42 CEST 2011


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Sun Oct  9 14:02:21 2011 -0400| [b46e58f7410488f49b22d0bc5d32479f352a8d61] | committer: Justin Ruggles

alacdec: remove unneeded local variable

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b46e58f7410488f49b22d0bc5d32479f352a8d61
---

 libavcodec/alac.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/libavcodec/alac.c b/libavcodec/alac.c
index 3b79645..5ff8cad 100644
--- a/libavcodec/alac.c
+++ b/libavcodec/alac.c
@@ -484,11 +484,8 @@ static int alac_decode_frame(AVCodecContext *avctx,
         if (alac->setinfo_sample_size <= 16) {
         for (i = 0; i < outputsamples; i++)
             for (chan = 0; chan < channels; chan++) {
-                int32_t audiobits;
-
-                audiobits = get_sbits_long(&alac->gb, alac->setinfo_sample_size);
-
-                alac->outputsamples_buffer[chan][i] = audiobits;
+                alac->outputsamples_buffer[chan][i] = get_sbits_long(&alac->gb,
+                                                                     alac->setinfo_sample_size);
             }
         } else {
             for (i = 0; i < outputsamples; i++) {



More information about the ffmpeg-cvslog mailing list