diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2008-01-16 01:43:31 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2008-01-16 01:43:31 +0000 |
commit | 0ae0e1d27156cffa8eec734b917403f99cafe3d9 (patch) | |
tree | 764ba39798f38017f01723a3ea74deaa58c6aaa7 /apps | |
parent | 0c7f2372d5887f6a1e9d76f04cd4ddbd1b5e402b (diff) |
libmpeg2: Change a couple style points for consistency and some spacing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16094 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/mpegplayer/mpeg2dec_config.h | 2 | ||||
-rw-r--r-- | apps/plugins/mpegplayer/slice.c | 20 |
2 files changed, 8 insertions, 14 deletions
diff --git a/apps/plugins/mpegplayer/mpeg2dec_config.h b/apps/plugins/mpegplayer/mpeg2dec_config.h index dff19e6ac4..c34ee374df 100644 --- a/apps/plugins/mpegplayer/mpeg2dec_config.h +++ b/apps/plugins/mpegplayer/mpeg2dec_config.h @@ -1,4 +1,4 @@ -/* $Id$ */ +/* $Id$ */ #ifndef MPEG2DEC_CONFIG_H #define MPEG2DEC_CONFIG_H diff --git a/apps/plugins/mpegplayer/slice.c b/apps/plugins/mpegplayer/slice.c index 3b6df97950..a98e85baa5 100644 --- a/apps/plugins/mpegplayer/slice.c +++ b/apps/plugins/mpegplayer/slice.c @@ -860,22 +860,16 @@ static void get_mpeg1_intra_block (mpeg2_decoder_t * const decoder) static int get_mpeg1_non_intra_block (mpeg2_decoder_t * const decoder) { - int i; - int j; - int val; + uint32_t bit_buf = decoder->bitstream_buf; + int bits = decoder->bitstream_bits; + const uint8_t * bit_ptr = decoder->bitstream_ptr; const uint8_t * const scan = decoder->scan; const uint16_t * const quant_matrix = decoder->quantizer_matrix[1]; - const DCTtab * tab; - uint32_t bit_buf; - int bits; - const uint8_t * bit_ptr; int16_t * const dest = decoder->DCTblock; - - i = -1; - - bit_buf = decoder->bitstream_buf; - bits = decoder->bitstream_bits; - bit_ptr = decoder->bitstream_ptr; + int i = -1; + int j; + int val; + const DCTtab * tab; NEEDBITS (bit_buf, bits, bit_ptr); if (bit_buf >= 0x28000000) |