mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avcodec/gdv: Simplify first inner loop in rescale()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
6228ce0a33
commit
d021729efc
@ -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)];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user