diff options
Diffstat (limited to 'libavcodec/fraps.c')
-rw-r--r-- | libavcodec/fraps.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c index cc2f52b609..5e2ba90d3f 100644 --- a/libavcodec/fraps.c +++ b/libavcodec/fraps.c @@ -247,12 +247,10 @@ static int decode_frame(AVCodecContext *avctx, case 1: /* Fraps v1 is an upside-down BGR24 */ - for (y=0; y<avctx->height; y++) - memcpy(&f->data[0][(avctx->height - y) * f->linesize[0]], - &buf[y * avctx->width * 3], - 3 * avctx->width); - - + for (y = 0; y<avctx->height; y++) + memcpy(&f->data[0][(avctx->height - y - 1) * f->linesize[0]], + &buf[y * avctx->width * 3], + 3 * avctx->width); break; case 2: |