[FFmpeg-cvslog] Cosmetics: Increase readability.

Carl Eugen Hoyos git at videolan.org
Sun Nov 13 15:45:12 CET 2011


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sun Nov 13 15:43:09 2011 +0100| [9117592549c63602710275abab17841b733c5b2d] | committer: Carl Eugen Hoyos

Cosmetics: Increase readability.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9117592549c63602710275abab17841b733c5b2d
---

 libavcodec/jvdec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/jvdec.c b/libavcodec/jvdec.c
index 7ceba1e..223cef1 100644
--- a/libavcodec/jvdec.c
+++ b/libavcodec/jvdec.c
@@ -173,7 +173,7 @@ static int decode_frame(AVCodecContext *avctx,
     if (buf < buf_end) {
         for (i = 0; i < AVPALETTE_COUNT && buf + 3 <= buf_end; i++) {
             uint32_t pal = AV_RB24(buf);
-            s->palette[i] = 0xFF << 24 | pal << 2 | pal >> 4 & 0x30303;
+            s->palette[i] = 0xFF << 24 | pal << 2 | ((pal >> 4) & 0x30303);
             buf += 3;
         }
         s->palette_has_changed = 1;



More information about the ffmpeg-cvslog mailing list