]> granicus.if.org Git - libvpx/commitdiff
y4minput.c: correct empty loop formatting
authorJames Zern <jzern@google.com>
Wed, 20 Jul 2016 03:46:39 +0000 (20:46 -0700)
committerYaowu Xu <yaowu@google.com>
Tue, 26 Jul 2016 04:05:00 +0000 (04:05 +0000)
prefer {}s over ';'

Change-Id: I563fc82717e1deb4f42a40e03dca318c6adaa0c1

y4minput.c

index 34ea96d9d57d7f629582bbfa45f2c0afc80a4c19..2dbd603e8c1ae8c0178cb9ab6499f92c1884c7d7 100644 (file)
@@ -61,11 +61,12 @@ static int y4m_parse_tags(y4m_input *_y4m, char *_tags) {
   got_w = got_h = got_fps = got_interlace = got_par = got_chroma = 0;
   for (p = _tags;; p = q) {
     /*Skip any leading spaces.*/
-    while (*p == ' ')p++;
+    while (*p == ' ') p++;
     /*If that's all we have, stop.*/
-    if (p[0] == '\0')break;
+    if (p[0] == '\0') break;
     /*Find the end of this tag.*/
-    for (q = p + 1; *q != '\0' && *q != ' '; q++);
+    for (q = p + 1; *q != '\0' && *q != ' '; q++) {
+    }
     /*Process the tag.*/
     switch (p[0]) {
       case 'W': {