Commit d021729e authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/gdv: Simplify first inner loop in rescale()

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 6228ce0a
......@@ -85,8 +85,7 @@ static void rescale(GDVContext *gdv, uint8_t *dst, int w, int h, int scale_v, in
int y = h - j - 1;
uint8_t *dst1 = dst + PREAMBLE_SIZE + y * w;
uint8_t *src1 = dst + PREAMBLE_SIZE + (y>>!!gdv->scale_h) * (w>>1);
for (i = 0; i < w; i++) {
int x = w - i - 1;
for (x = w - 1; x >= 0; x--) {
dst1[x] = src1[(x>>1)];
}
}
......
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