Skip to content
Snippets Groups Projects
Commit 64b8e620 authored by Reimar Döffinger's avatar Reimar Döffinger
Browse files

Slightly simplify detection of end of compressed data in xan_unpack

Originally committed as revision 19772 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent bb991087
No related branches found
No related tags found
No related merge requests found
...@@ -156,12 +156,8 @@ static void xan_unpack(unsigned char *dest, const unsigned char *src, int dest_l ...@@ -156,12 +156,8 @@ static void xan_unpack(unsigned char *dest, const unsigned char *src, int dest_l
av_memcpy_backptr(dest, back, size2); av_memcpy_backptr(dest, back, size2);
dest += size2; dest += size2;
} else { } else {
int finish; int finish = opcode >= 0xfc;
size = ((opcode & 0x1f) << 2) + 4; size = finish ? opcode & 3 : ((opcode & 0x1f) << 2) + 4;
finish = size > 0x70;
if (finish)
size = opcode & 3;
memcpy(dest, src, size); dest += size; src += size; memcpy(dest, src, size); dest += size; src += size;
if (finish) if (finish)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment