aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mjpeg.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2007-04-01 22:20:51 +0000
committerAurelien Jacobs <aurel@gnuage.org>2007-04-01 22:20:51 +0000
commitf8fb86e9bb2c6c15103c5d3b6704cf5ae0fdd914 (patch)
treebe28e896de46e80563874de1b7eb273fea5e687c /libavcodec/mjpeg.c
parentca345e442d121963c7e75bba7a3e70d9f29db5aa (diff)
downloadffmpeg-f8fb86e9bb2c6c15103c5d3b6704cf5ae0fdd914.tar.gz
cosmetics: indentation
Originally committed as revision 8593 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mjpeg.c')
-rw-r--r--libavcodec/mjpeg.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/libavcodec/mjpeg.c b/libavcodec/mjpeg.c
index a2362df9dc..e3583e54e0 100644
--- a/libavcodec/mjpeg.c
+++ b/libavcodec/mjpeg.c
@@ -2046,16 +2046,15 @@ static int mjpeg_decode_frame(AVCodecContext *avctx,
*(dst++) = x;
if (avctx->codec_id != CODEC_ID_THP)
{
- if (x == 0xff)
- {
- while(src<buf_end && x == 0xff)
- x = *(src++);
-
- if (x >= 0xd0 && x <= 0xd7)
- *(dst++) = x;
- else if (x)
- break;
- }
+ if (x == 0xff) {
+ while (src < buf_end && x == 0xff)
+ x = *(src++);
+
+ if (x >= 0xd0 && x <= 0xd7)
+ *(dst++) = x;
+ else if (x)
+ break;
+ }
}
}
init_get_bits(&s->gb, s->buffer, (dst - s->buffer)*8);