Commit b2532cdc authored by reimar's avatar reimar

Slightly simplify detection of end of compressed data in xan_unpack


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19772 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent bb514135
......@@ -156,12 +156,8 @@ static void xan_unpack(unsigned char *dest, const unsigned char *src, int dest_l
av_memcpy_backptr(dest, back, size2);
dest += size2;
} else {
int finish;
size = ((opcode & 0x1f) << 2) + 4;
finish = size > 0x70;
if (finish)
size = opcode & 3;
int finish = opcode >= 0xfc;
size = finish ? opcode & 3 : ((opcode & 0x1f) << 2) + 4;
memcpy(dest, src, size); dest += size; src += size;
if (finish)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment