Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
a1159318
Commit
a1159318
authored
May 08, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffadler: add multifile support
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
3d66ce17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
+19
-5
ffadler.c
tools/ffadler.c
+19
-5
No files found.
tools/ffadler.c
View file @
a1159318
...
...
@@ -36,15 +36,15 @@
#define SIZE 65536
int
main
(
int
argc
,
char
**
argv
)
static
int
check
(
char
*
file
)
{
uint8_t
buffer
[
SIZE
];
uint32_t
checksum
=
1
;
int
fd
;
int
ret
=
0
;
if
(
argc
>
1
)
fd
=
open
(
argv
[
1
]
,
O_RDONLY
);
else
fd
=
0
;
if
(
file
)
fd
=
open
(
file
,
O_RDONLY
);
else
fd
=
0
;
if
(
fd
==
-
1
)
{
printf
(
"A32=OPEN-FAILED-%d
\n
"
,
errno
);
ret
=
1
;
...
...
@@ -65,9 +65,23 @@ int main(int argc, char **argv)
printf
(
"A32=0x%08x"
,
checksum
);
end:
if
(
argc
>
1
)
printf
(
" *%s"
,
argv
[
1
]
);
if
(
file
)
printf
(
" *%s"
,
file
);
printf
(
"
\n
"
);
return
ret
;
}
int
main
(
int
argc
,
char
**
argv
)
{
int
i
;
int
ret
=
0
;
for
(
i
=
1
;
i
<
argc
;
i
++
)
ret
|=
check
(
argv
[
i
]);
if
(
argc
==
1
)
ret
|=
check
(
NULL
);
return
ret
;
}
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