Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
e0c265e4
Commit
e0c265e4
authored
Jul 19, 2016
by
James Zern
Committed by
Yaowu Xu
Jul 26, 2016
Browse files
y4minput.c: correct empty loop formatting
prefer {}s over ';' Change-Id: I563fc82717e1deb4f42a40e03dca318c6adaa0c1
parent
57303cb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
y4minput.c
View file @
e0c265e4
...
...
@@ -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'
:
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment