Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
a676c29a
Commit
a676c29a
authored
Apr 15, 2016
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/bink: Cosmetics: Reindent after last commit.
parent
6d39132f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
bink.c
libavformat/bink.c
+10
-10
No files found.
libavformat/bink.c
View file @
a676c29a
...
...
@@ -65,16 +65,16 @@ static int probe(AVProbeData *p)
int
smush
=
AV_RN32
(
p
->
buf
)
==
AV_RN32
(
"SMUS"
);
do
{
if
(((
b
[
0
]
==
'B'
&&
b
[
1
]
==
'I'
&&
b
[
2
]
==
'K'
&&
(
b
[
3
]
==
'b'
||
b
[
3
]
==
'f'
||
b
[
3
]
==
'g'
||
b
[
3
]
==
'h'
||
b
[
3
]
==
'i'
))
||
(
b
[
0
]
==
'K'
&&
b
[
1
]
==
'B'
&&
b
[
2
]
==
'2'
&&
/* Bink 2 */
(
b
[
3
]
==
'a'
||
b
[
3
]
==
'd'
||
b
[
3
]
==
'f'
||
b
[
3
]
==
'g'
)))
&&
AV_RL32
(
b
+
8
)
>
0
&&
// num_frames
AV_RL32
(
b
+
20
)
>
0
&&
AV_RL32
(
b
+
20
)
<=
BINK_MAX_WIDTH
&&
AV_RL32
(
b
+
24
)
>
0
&&
AV_RL32
(
b
+
24
)
<=
BINK_MAX_HEIGHT
&&
AV_RL32
(
b
+
28
)
>
0
&&
AV_RL32
(
b
+
32
)
>
0
)
// fps num,den
return
AVPROBE_SCORE_MAX
;
b
+=
SMUSH_BLOCK_SIZE
;
if
(((
b
[
0
]
==
'B'
&&
b
[
1
]
==
'I'
&&
b
[
2
]
==
'K'
&&
(
b
[
3
]
==
'b'
||
b
[
3
]
==
'f'
||
b
[
3
]
==
'g'
||
b
[
3
]
==
'h'
||
b
[
3
]
==
'i'
))
||
(
b
[
0
]
==
'K'
&&
b
[
1
]
==
'B'
&&
b
[
2
]
==
'2'
&&
/* Bink 2 */
(
b
[
3
]
==
'a'
||
b
[
3
]
==
'd'
||
b
[
3
]
==
'f'
||
b
[
3
]
==
'g'
)))
&&
AV_RL32
(
b
+
8
)
>
0
&&
// num_frames
AV_RL32
(
b
+
20
)
>
0
&&
AV_RL32
(
b
+
20
)
<=
BINK_MAX_WIDTH
&&
AV_RL32
(
b
+
24
)
>
0
&&
AV_RL32
(
b
+
24
)
<=
BINK_MAX_HEIGHT
&&
AV_RL32
(
b
+
28
)
>
0
&&
AV_RL32
(
b
+
32
)
>
0
)
// fps num,den
return
AVPROBE_SCORE_MAX
;
b
+=
SMUSH_BLOCK_SIZE
;
}
while
(
smush
&&
b
<
p
->
buf
+
p
->
buf_size
-
32
);
return
0
;
}
...
...
Write
Preview
Markdown
is supported
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