diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-12-23 15:03:15 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-23 15:03:15 +0100 |
commit | 8e09e183fc5fbddec153e41bb8f9b30eb6e11add (patch) | |
tree | 15ef362af8657ad573185826617e56a257cc69e3 /libavcodec/aasc.c | |
parent | def18e5470bdcddb9d737784cc6ae427c195da7c (diff) | |
parent | b6d7d4efae60845a93be6948ef78482bba1fc291 (diff) | |
download | ffmpeg-8e09e183fc5fbddec153e41bb8f9b30eb6e11add.tar.gz |
Merge remote-tracking branch 'qatar/master'
* qatar/master:
8bps: cosmetics
aasc: cosmetics, reformat
ansi: remove an extra return
asvdec: cosmetics, reformat
aura: cosmetics, reformat
Conflicts:
libavcodec/aasc.c
libavcodec/asvdec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/aasc.c')
-rw-r--r-- | libavcodec/aasc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libavcodec/aasc.c b/libavcodec/aasc.c index 01ec062804..0d4704fc3e 100644 --- a/libavcodec/aasc.c +++ b/libavcodec/aasc.c @@ -79,8 +79,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, psize; if (buf_size < 4) { @@ -95,8 +95,8 @@ static int aasc_decode_frame(AVCodecContext *avctx, return -1; } - compr = AV_RL32(buf); - buf += 4; + compr = AV_RL32(buf); + buf += 4; buf_size -= 4; psize = avctx->bits_per_coded_sample / 8; switch (avctx->codec_tag) { @@ -105,11 +105,11 @@ static int aasc_decode_frame(AVCodecContext *avctx, ff_msrle_decode(avctx, (AVPicture*)&s->frame, 8, &s->gb); break; case MKTAG('A', 'A', 'S', 'C'): - switch(compr){ + switch (compr) { case 0: stride = (avctx->width * psize + psize) & ~psize; - for(i = avctx->height - 1; i >= 0; i--){ - if(avctx->width * psize > buf_size){ + for (i = avctx->height - 1; i >= 0; i--) { + if (avctx->width * psize > buf_size) { av_log(avctx, AV_LOG_ERROR, "Next line is beyond buffer bounds\n"); break; } |