Commit 347b02dd authored by reimar's avatar reimar

Avoid code duplication in xan_unpack for the final memcpy.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18608 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 15145a70
......@@ -157,17 +157,18 @@ 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;
if (size > 0x70)
break;
finish = size > 0x70;
if (finish)
size = opcode & 3;
memcpy(dest, src, size); dest += size; src += size;
if (finish)
return;
}
}
size = opcode & 3;
memcpy(dest, src, size); dest += size; src += size;
}
static inline void xan_wc3_output_pixel_run(XanContext *s,
......
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