From: reimar Date: Fri, 17 Apr 2009 17:54:55 +0000 (+0000) Subject: Remove a pointless right-shift in xan decoder. X-Git-Url: https://rtime.felk.cvut.cz/gitweb/frescor/ffmpeg.git/commitdiff_plain/6a7867c2fd41fd99879f590b9ec171a6a1f22b75 Remove a pointless right-shift in xan decoder. git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18574 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- diff --git a/libavcodec/xan.c b/libavcodec/xan.c index 66b2ddf6c..9a311eae6 100644 --- a/libavcodec/xan.c +++ b/libavcodec/xan.c @@ -181,7 +181,7 @@ static void xan_unpack(unsigned char *dest, const unsigned char *src, int dest_l if (dest + size > dest_end) return; av_memcpy_backptr(dest, - (((opcode & 0x10) >> 4) << 0x10) + 1 + (byte1 << 8) + byte2, + ((opcode & 0x10) << 12) + 1 + (byte1 << 8) + byte2, size); dest += size; } else {