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
5045786b
Commit
5045786b
authored
May 19, 2011
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf: fix style for avformat_alloc_output_context2()
More consistent/readable.
parent
5ecdfd00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
utils.c
libavformat/utils.c
+6
-6
No files found.
libavformat/utils.c
View file @
5045786b
...
...
@@ -2754,14 +2754,14 @@ int av_set_parameters(AVFormatContext *s, AVFormatParameters *ap)
int
avformat_alloc_output_context2
(
AVFormatContext
**
avctx
,
AVOutputFormat
*
oformat
,
const
char
*
format
,
const
char
*
filename
)
{
AVFormatContext
*
s
=
avformat_alloc_context
();
AVFormatContext
*
s
=
avformat_alloc_context
();
int
ret
=
0
;
*
avctx
=
NULL
;
if
(
!
s
)
if
(
!
s
)
goto
nomem
;
if
(
!
oformat
)
{
if
(
!
oformat
)
{
if
(
format
)
{
oformat
=
av_guess_format
(
format
,
NULL
,
NULL
);
if
(
!
oformat
)
{
...
...
@@ -2774,13 +2774,13 @@ int avformat_alloc_output_context2(AVFormatContext **avctx, AVOutputFormat *ofor
if
(
!
oformat
)
{
ret
=
AVERROR
(
EINVAL
);
av_log
(
s
,
AV_LOG_ERROR
,
"Unable to find a suitable output format for '%s'
\n
"
,
filename
);
filename
);
goto
error
;
}
}
}
s
->
oformat
=
oformat
;
s
->
oformat
=
oformat
;
if
(
s
->
oformat
->
priv_data_size
>
0
)
{
s
->
priv_data
=
av_mallocz
(
s
->
oformat
->
priv_data_size
);
if
(
!
s
->
priv_data
)
...
...
@@ -2792,7 +2792,7 @@ int avformat_alloc_output_context2(AVFormatContext **avctx, AVOutputFormat *ofor
}
else
s
->
priv_data
=
NULL
;
if
(
filename
)
if
(
filename
)
av_strlcpy
(
s
->
filename
,
filename
,
sizeof
(
s
->
filename
));
*
avctx
=
s
;
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