diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2018-08-05 16:58:35 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-09-28 01:25:17 +0200 |
commit | d021729efc1fe3480326c29f7dbb8d0e56ea4c71 (patch) | |
tree | cb8e1c799c1c8e642d23810edae63b60ec999adc | |
parent | 6228ce0a33c77d8bd84a7abf61f502b46a8ce46f (diff) | |
download | ffmpeg-d021729efc1fe3480326c29f7dbb8d0e56ea4c71.tar.gz |
avcodec/gdv: Simplify first inner loop in rescale()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/gdv.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/gdv.c b/libavcodec/gdv.c index 1efc64b1dc..595d8ff4e4 100644 --- a/libavcodec/gdv.c +++ b/libavcodec/gdv.c @@ -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)]; } } |