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
f19fbfbd
Commit
f19fbfbd
authored
Sep 02, 2017
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aviocat: Check for output write errors
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
585dc1ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
aviocat.c
tools/aviocat.c
+5
-0
No files found.
tools/aviocat.c
View file @
f19fbfbd
...
...
@@ -107,6 +107,11 @@ int main(int argc, char **argv)
if
(
n
<=
0
)
break
;
avio_write
(
output
,
buf
,
n
);
if
(
output
->
error
)
{
av_strerror
(
output
->
error
,
errbuf
,
sizeof
(
errbuf
));
fprintf
(
stderr
,
"Unable to write %s: %s
\n
"
,
output_url
,
errbuf
);
break
;
}
stream_pos
+=
n
;
if
(
bps
)
{
avio_flush
(
output
);
...
...
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