Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dav1d
Manage
Activity
Members
Labels
Plan
Issues
26
Issue boards
Milestones
Wiki
Code
Merge requests
13
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
dav1d
Commits
5c6c3acc
Commit
5c6c3acc
authored
6 years ago
by
Martin Storsjö
Committed by
Ronald S. Bultje
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix muxers writing to stdout
parent
62069f12
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!26
Fix muxers writing to stdout
Pipeline
#313
passed with stage
in 21 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tools/output/md5.c
+1
-1
1 addition, 1 deletion
tools/output/md5.c
tools/output/y4m2.c
+2
-2
2 additions, 2 deletions
tools/output/y4m2.c
tools/output/yuv.c
+2
-2
2 additions, 2 deletions
tools/output/yuv.c
with
5 additions
and
5 deletions
tools/output/md5.c
+
1
−
1
View file @
5c6c3acc
...
...
@@ -206,7 +206,7 @@ static void md5_close(MD5Context *const md5) {
md5
->
abcd
[
i
]
>>
24
);
fprintf
(
md5
->
f
,
"
\n
"
);
if
(
md5
->
f
!=
std
in
)
if
(
md5
->
f
!=
std
out
)
fclose
(
md5
->
f
);
}
...
...
This diff is collapsed.
Click to expand it.
tools/output/y4m2.c
+
2
−
2
View file @
5c6c3acc
...
...
@@ -43,7 +43,7 @@ static int y4m2_open(Y4m2OutputContext *const c, const char *const file,
const
Dav1dPictureParameters
*
p
,
const
unsigned
fps
[
2
])
{
if
(
!
strcmp
(
file
,
"-"
))
{
c
->
f
=
std
in
;
c
->
f
=
std
out
;
}
else
if
(
!
(
c
->
f
=
fopen
(
file
,
"w"
)))
{
fprintf
(
stderr
,
"Failed to open %s: %s
\n
"
,
file
,
strerror
(
errno
));
return
-
1
;
...
...
@@ -100,7 +100,7 @@ error:
}
static
void
y4m2_close
(
Y4m2OutputContext
*
const
c
)
{
if
(
c
->
f
!=
std
in
)
if
(
c
->
f
!=
std
out
)
fclose
(
c
->
f
);
}
...
...
This diff is collapsed.
Click to expand it.
tools/output/yuv.c
+
2
−
2
View file @
5c6c3acc
...
...
@@ -44,7 +44,7 @@ static int yuv_open(YuvOutputContext *const c, const char *const file,
const
unsigned
fps
[
2
])
{
if
(
!
strcmp
(
file
,
"-"
))
{
c
->
f
=
std
in
;
c
->
f
=
std
out
;
}
else
if
(
!
(
c
->
f
=
fopen
(
file
,
"w"
)))
{
fprintf
(
stderr
,
"Failed to open %s: %s
\n
"
,
file
,
strerror
(
errno
));
return
-
1
;
...
...
@@ -90,7 +90,7 @@ error:
}
static
void
yuv_close
(
YuvOutputContext
*
const
c
)
{
if
(
c
->
f
!=
std
in
)
if
(
c
->
f
!=
std
out
)
fclose
(
c
->
f
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment