Commit ef16d3cd authored by vitor's avatar vitor

Minor simplification of rotate_block()

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13197 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4067eb71
...@@ -138,10 +138,10 @@ static void do_output_subblock(Real144_internal *glob, const unsigned short *gs ...@@ -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) static void rotate_block(const short *source, short *target, int offset)
{ {
int i=0, k=0; int i=0, k=0;
const short *ptr1 = source + BUFFERSIZE - offset; source += BUFFERSIZE - offset;
while (i<BLOCKSIZE) { while (i<BLOCKSIZE) {
target[i++] = ptr1[k++]; target[i++] = source[k++];
if (k == offset) if (k == offset)
k = 0; k = 0;
......
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