aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/xan.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-04-17 17:54:55 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-04-17 17:54:55 +0000
commit5e12701c5c881722f28379a15a60d5a20698b10f (patch)
tree09b5a1154b463532b8eebd2d224eb06d1478a46b /libavcodec/xan.c
parent25ef00720b168fbfdd29c45d3ed810b1cbc6d575 (diff)
downloadffmpeg-5e12701c5c881722f28379a15a60d5a20698b10f.tar.gz
Remove a pointless right-shift in xan decoder.
Originally committed as revision 18574 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/xan.c')
-rw-r--r--libavcodec/xan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/xan.c b/libavcodec/xan.c
index 66b2ddf6cb..9a311eae6c 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 {