summaryrefslogtreecommitdiff
path: root/libavcodec/fraps.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-01-29 14:21:36 +0100
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-01-29 14:21:36 +0100
commit95e873bb14cc7a55d2b1c98c591bc2fb8d5d48d1 (patch)
tree09ec3b8a07399c34f3e4305d255c40d87eefad9a /libavcodec/fraps.c
parent6a9b565e0a238b475e036c2e0a77b991cb0a3efb (diff)
downloadffmpeg-95e873bb14cc7a55d2b1c98c591bc2fb8d5d48d1.tar.gz
fraps: fix indentation.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavcodec/fraps.c')
-rw-r--r--libavcodec/fraps.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c
index d674d8e467..4ee97835a1 100644
--- a/libavcodec/fraps.c
+++ b/libavcodec/fraps.c
@@ -199,29 +199,29 @@ static int decode_frame(AVCodecContext *avctx,
return -1;
}
- buf32=(const uint32_t*)buf;
- for(y=0; y<avctx->height/2; y++){
- luma1=(uint32_t*)&f->data[0][ y*2*f->linesize[0] ];
- luma2=(uint32_t*)&f->data[0][ (y*2+1)*f->linesize[0] ];
- cr=(uint32_t*)&f->data[1][ y*f->linesize[1] ];
- cb=(uint32_t*)&f->data[2][ y*f->linesize[2] ];
- for(x=0; x<avctx->width; x+=8){
- *luma1++ = *buf32++;
- *luma1++ = *buf32++;
- *luma2++ = *buf32++;
- *luma2++ = *buf32++;
- *cr++ = *buf32++;
- *cb++ = *buf32++;
- }
+ buf32=(const uint32_t*)buf;
+ for(y=0; y<avctx->height/2; y++){
+ luma1=(uint32_t*)&f->data[0][ y*2*f->linesize[0] ];
+ luma2=(uint32_t*)&f->data[0][ (y*2+1)*f->linesize[0] ];
+ cr=(uint32_t*)&f->data[1][ y*f->linesize[1] ];
+ cb=(uint32_t*)&f->data[2][ y*f->linesize[2] ];
+ for(x=0; x<avctx->width; x+=8){
+ *luma1++ = *buf32++;
+ *luma1++ = *buf32++;
+ *luma2++ = *buf32++;
+ *luma2++ = *buf32++;
+ *cr++ = *buf32++;
+ *cb++ = *buf32++;
}
+ }
break;
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)*f->linesize[0] ],
+ &buf[y*avctx->width*3],
+ 3*avctx->width);
break;
case 2: