[FFmpeg-cvslog] r18574 - trunk/libavcodec/xan.c

reimar subversion
Fri Apr 17 19:54:55 CEST 2009


Author: reimar
Date: Fri Apr 17 19:54:55 2009
New Revision: 18574

Log:
Remove a pointless right-shift in xan decoder.

Modified:
   trunk/libavcodec/xan.c

Modified: trunk/libavcodec/xan.c
==============================================================================
--- trunk/libavcodec/xan.c	Fri Apr 17 19:52:58 2009	(r18573)
+++ trunk/libavcodec/xan.c	Fri Apr 17 19:54:55 2009	(r18574)
@@ -181,7 +181,7 @@ static void xan_unpack(unsigned char *de
             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 {



More information about the ffmpeg-cvslog mailing list