diff options
Diffstat (limited to 'apps/codecs')
-rw-r--r-- | apps/codecs/libwmapro/wmaprodec.c | 12 |
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", |