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
a1a6cdc2
Commit
a1a6cdc2
authored
May 25, 2012
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: Display the error returned by avformat_write_header
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
68c81308
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
avconv.c
avconv.c
+6
-2
No files found.
avconv.c
View file @
a1a6cdc2
...
...
@@ -2863,8 +2863,12 @@ static int transcode_init(void)
for
(
i
=
0
;
i
<
nb_output_files
;
i
++
)
{
oc
=
output_files
[
i
]
->
ctx
;
oc
->
interrupt_callback
=
int_cb
;
if
(
avformat_write_header
(
oc
,
&
output_files
[
i
]
->
opts
)
<
0
)
{
snprintf
(
error
,
sizeof
(
error
),
"Could not write header for output file #%d (incorrect codec parameters ?)"
,
i
);
if
((
ret
=
avformat_write_header
(
oc
,
&
output_files
[
i
]
->
opts
))
<
0
)
{
char
errbuf
[
128
];
const
char
*
errbuf_ptr
=
errbuf
;
if
(
av_strerror
(
ret
,
errbuf
,
sizeof
(
errbuf
))
<
0
)
errbuf_ptr
=
strerror
(
AVUNERROR
(
ret
));
snprintf
(
error
,
sizeof
(
error
),
"Could not write header for output file #%d (incorrect codec parameters ?): %s"
,
i
,
errbuf_ptr
);
ret
=
AVERROR
(
EINVAL
);
goto
dump_format
;
}
...
...
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