Browse Source

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

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n4.1
Michael Niedermayer 7 years ago
parent
commit
d021729efc
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavcodec/gdv.c

+ 1
- 2
libavcodec/gdv.c View File

@@ -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…
Cancel
Save