OSDN Git Service

cosmetics: indentation
authorAurelien Jacobs <aurel@gnuage.org>
Sun, 1 Apr 2007 22:20:51 +0000 (22:20 +0000)
committerAurelien Jacobs <aurel@gnuage.org>
Sun, 1 Apr 2007 22:20:51 +0000 (22:20 +0000)
Originally committed as revision 8593 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mjpeg.c

index a2362df..e3583e5 100644 (file)
@@ -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);