From 24243d49fd0b422dae54343c34fac583e0741f22 Mon Sep 17 00:00:00 2001 From: jethead71 Date: Wed, 16 Jan 2008 01:43:31 +0000 Subject: [PATCH] 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 --- apps/plugins/mpegplayer/mpeg2dec_config.h | 2 +- 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 dff19e6ac..c34ee374d 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 3b6df9795..a98e85baa 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) -- 2.11.4.GIT