summaryrefslogtreecommitdiff
path: root/apps/codecs/libwmapro/wmaprodec.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-01 14:44:20 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-01 14:44:20 +0000
commit27d153db930a231718a18ec5a886c8789077c83a (patch)
tree9d29fd6c1348f3ca1742774cb242177b3d0ca82b /apps/codecs/libwmapro/wmaprodec.c
parentf7c45941344ecfbcdd5d9b311b61573d37c6ef58 (diff)
downloadrockbox-27d153db930a231718a18ec5a886c8789077c83a.tar.gz
rockbox-27d153db930a231718a18ec5a886c8789077c83a.zip
Fix nearly all residual 'variable set but not used' warnings reported from GCC 4.6.0.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29810 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libwmapro/wmaprodec.c')
-rw-r--r--apps/codecs/libwmapro/wmaprodec.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/apps/codecs/libwmapro/wmaprodec.c b/apps/codecs/libwmapro/wmaprodec.c
index 018ea7c304..c72bd0f10f 100644
--- a/apps/codecs/libwmapro/wmaprodec.c
+++ b/apps/codecs/libwmapro/wmaprodec.c
@@ -1382,20 +1382,16 @@ static int decode_frame(WMAProDecodeCtx *s)
1382 /** no idea what these are for, might be the number of samples 1382 /** no idea what these are for, might be the number of samples
1383 that need to be skipped at the beginning or end of a stream */ 1383 that need to be skipped at the beginning or end of a stream */
1384 if (get_bits1(gb)) { 1384 if (get_bits1(gb)) {
1385 int skip;
1386
1387 /** usually true for the first frame */ 1385 /** usually true for the first frame */
1388 if (get_bits1(gb)) { 1386 if (get_bits1(gb)) {
1389 skip = get_bits(gb, av_log2(s->samples_per_frame * 2)); 1387 get_bits(gb, av_log2(s->samples_per_frame * 2));
1390 DEBUGF("start skip: %i\n", skip); 1388 DEBUGF("start skip\n");
1391 } 1389 }
1392
1393 /** sometimes true for the last frame */ 1390 /** sometimes true for the last frame */
1394 if (get_bits1(gb)) { 1391 if (get_bits1(gb)) {
1395 skip = get_bits(gb, av_log2(s->samples_per_frame * 2)); 1392 get_bits(gb, av_log2(s->samples_per_frame * 2));
1396 DEBUGF("end skip: %i\n", skip); 1393 DEBUGF("end skip\n");
1397 } 1394 }
1398
1399 } 1395 }
1400 1396
1401 DEBUGF("BITSTREAM: frame header length was %i\n", 1397 DEBUGF("BITSTREAM: frame header length was %i\n",