1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

Minor simplification of rotate_block()

Originally committed as revision 13197 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Vitor Sessak 2008-05-17 14:42:55 +00:00
parent f54b42736d
commit f1bf6ba3db

View File

@ -138,10 +138,10 @@ static void do_output_subblock(Real144_internal *glob, const unsigned short *gs
static void rotate_block(const short *source, short *target, int offset)
{
int i=0, k=0;
const short *ptr1 = source + BUFFERSIZE - offset;
source += BUFFERSIZE - offset;
while (i<BLOCKSIZE) {
target[i++] = ptr1[k++];
target[i++] = source[k++];
if (k == offset)
k = 0;