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
1dce2368
Commit
1dce2368
authored
Jun 22, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/buffer: apply misc consistency nits
parent
201b409d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
buffersrc.c
libavfilter/buffersrc.c
+5
-5
No files found.
libavfilter/buffersrc.c
View file @
1dce2368
...
...
@@ -250,7 +250,7 @@ static av_cold int init_video(AVFilterContext *ctx, const char *args, void *opaq
av_opt_set_defaults
(
c
);
ret
=
av_set_options_string
(
c
,
args
,
"="
,
":"
);
if
(
ret
<
0
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Error parsing options string: %s
.
\n
"
,
args
);
av_log
(
ctx
,
AV_LOG_ERROR
,
"Error parsing options string: %s
\n
"
,
args
);
goto
fail
;
}
}
else
{
...
...
@@ -261,7 +261,7 @@ static av_cold int init_video(AVFilterContext *ctx, const char *args, void *opaq
ret
=
AVERROR
(
EINVAL
);
goto
fail
;
}
av_log
(
ctx
,
AV_LOG_WARNING
,
"Flat options syntax is deprecated, use key=value pairs
.
\n
"
);
av_log
(
ctx
,
AV_LOG_WARNING
,
"Flat options syntax is deprecated, use key=value pairs
\n
"
);
if
((
ret
=
ff_parse_pixel_format
(
&
c
->
pix_fmt
,
pix_fmt_str
,
ctx
))
<
0
)
goto
fail
;
...
...
@@ -308,13 +308,13 @@ static av_cold int init_audio(AVFilterContext *ctx, const char *args, void *opaq
av_opt_set_defaults
(
s
);
if
((
ret
=
av_set_options_string
(
s
,
args
,
"="
,
":"
))
<
0
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Error parsing options string:
%s.
\n
"
,
args
);
av_log
(
ctx
,
AV_LOG_ERROR
,
"Error parsing options string:
'%s'
\n
"
,
args
);
goto
fail
;
}
s
->
sample_fmt
=
av_get_sample_fmt
(
s
->
sample_fmt_str
);
if
(
s
->
sample_fmt
==
AV_SAMPLE_FMT_NONE
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Invalid sample format
%s.
\n
"
,
av_log
(
ctx
,
AV_LOG_ERROR
,
"Invalid sample format
'%s'
\n
"
,
s
->
sample_fmt_str
);
ret
=
AVERROR
(
EINVAL
);
goto
fail
;
...
...
@@ -322,7 +322,7 @@ static av_cold int init_audio(AVFilterContext *ctx, const char *args, void *opaq
s
->
channel_layout
=
av_get_channel_layout
(
s
->
channel_layout_str
);
if
(
!
s
->
channel_layout
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Invalid channel layout
%s.
\n
"
,
av_log
(
ctx
,
AV_LOG_ERROR
,
"Invalid channel layout
'%s'
\n
"
,
s
->
channel_layout_str
);
ret
=
AVERROR
(
EINVAL
);
goto
fail
;
...
...
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