diff options
-rw-r--r-- | firmware/mpeg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c index 52525cf4d1..cb19ebddf9 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c | |||
@@ -204,8 +204,8 @@ static void dma_tick(void) | |||
204 | 204 | ||
205 | static void bitswap(unsigned char *data, int length) | 205 | static void bitswap(unsigned char *data, int length) |
206 | { | 206 | { |
207 | int i; | 207 | int i = length; |
208 | for(i = 0;i < length;i++) | 208 | while(i--) |
209 | { | 209 | { |
210 | data[i] = fliptable[data[i]]; | 210 | data[i] = fliptable[data[i]]; |
211 | } | 211 | } |