From 8d254a0927c1f7c7a3afc498fa12ff299dd846b9 Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 30 Mar 2012 15:26:07 -0700 Subject: [PATCH] cosmetics long line, remove out of date TODO Change-Id: Ic8a40c9d731178af85645b3e24c1cbd807d7d58b --- src/dec/vp8.c | 3 ++- src/utils/bit_reader.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dec/vp8.c b/src/dec/vp8.c index 4651caeb..7b0e38ea 100644 --- a/src/dec/vp8.c +++ b/src/dec/vp8.c @@ -467,7 +467,8 @@ typedef const uint8_t (*ProbaArray)[NUM_CTX][NUM_PROBAS]; // for const-casting // (and 0 if there's no coeff at all) static int GetCoeffs(VP8BitReader* const br, ProbaArray prob, int ctx, const quant_t dq, int n, int16_t* out) { - const uint8_t* p = prob[n][ctx]; // n is either 0 or 1 here. kBands[n] is not necessary. + // n is either 0 or 1 here. kBands[n] is not necessary for extracting '*p'. + const uint8_t* p = prob[n][ctx]; if (!VP8GetBit(br, p[0])) { // first EOB is more a 'CBP' bit. return 0; } diff --git a/src/utils/bit_reader.h b/src/utils/bit_reader.h index 297060bc..03b12371 100644 --- a/src/utils/bit_reader.h +++ b/src/utils/bit_reader.h @@ -80,7 +80,7 @@ static WEBP_INLINE void VP8LoadNewBytes(VP8BitReader* const br) { bit_t bits; lbit_t in_bits = *(lbit_t*)br->buf_; br->buf_ += (BITS) >> 3; -#if !defined(__BIG_ENDIAN__) // TODO(skal): what about PPC? +#if !defined(__BIG_ENDIAN__) #if (BITS == 32) #if defined(__i386__) || defined(__x86_64__) __asm__ volatile("bswap %k0" : "=r"(in_bits) : "0"(in_bits));