summaryrefslogtreecommitdiff
path: root/libavcodec/aasc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-11-14 09:09:43 +0100
committerAnton Khirnov <anton@khirnov.net>2012-12-23 11:17:53 +0100
commitc64cf2a37bfc909cb3fe9af9699092e105c705fa (patch)
tree502d7f044c4abca023459eb67a85a5a5cafa1319 /libavcodec/aasc.c
parent808b2227d7485e54d02af7a6294c3b70b63ce773 (diff)
downloadffmpeg-c64cf2a37bfc909cb3fe9af9699092e105c705fa.tar.gz
aasc: cosmetics, reformat
Diffstat (limited to 'libavcodec/aasc.c')
-rw-r--r--libavcodec/aasc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libavcodec/aasc.c b/libavcodec/aasc.c
index cd1df36ae2..47d25d0d09 100644
--- a/libavcodec/aasc.c
+++ b/libavcodec/aasc.c
@@ -54,8 +54,8 @@ static int aasc_decode_frame(AVCodecContext *avctx,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
- int buf_size = avpkt->size;
- AascContext *s = avctx->priv_data;
+ int buf_size = avpkt->size;
+ AascContext *s = avctx->priv_data;
int compr, i, stride;
s->frame.reference = 1;
@@ -65,14 +65,14 @@ static int aasc_decode_frame(AVCodecContext *avctx,
return -1;
}
- compr = AV_RL32(buf);
- buf += 4;
+ compr = AV_RL32(buf);
+ buf += 4;
buf_size -= 4;
- switch(compr){
+ switch (compr) {
case 0:
stride = (avctx->width * 3 + 3) & ~3;
- for(i = avctx->height - 1; i >= 0; i--){
- memcpy(s->frame.data[0] + i*s->frame.linesize[0], buf, avctx->width*3);
+ for (i = avctx->height - 1; i >= 0; i--) {
+ memcpy(s->frame.data[0] + i * s->frame.linesize[0], buf, avctx->width * 3);
buf += stride;
}
break;