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
b5e0e327
Commit
b5e0e327
authored
Nov 26, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: fix swr filter_type for auto inserted aresample filters
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
4bd6d73f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
0 deletions
+4
-0
ffmpeg.h
ffmpeg.h
+1
-0
ffmpeg_filter.c
ffmpeg_filter.c
+2
-0
ffmpeg_opt.c
ffmpeg_opt.c
+1
-0
No files found.
ffmpeg.h
View file @
b5e0e327
...
@@ -326,6 +326,7 @@ typedef struct OutputStream {
...
@@ -326,6 +326,7 @@ typedef struct OutputStream {
char
*
avfilter
;
char
*
avfilter
;
int64_t
sws_flags
;
int64_t
sws_flags
;
int64_t
swr_filter_type
;
int64_t
swr_dither_method
;
int64_t
swr_dither_method
;
double
swr_dither_scale
;
double
swr_dither_scale
;
AVDictionary
*
opts
;
AVDictionary
*
opts
;
...
...
ffmpeg_filter.c
View file @
b5e0e327
...
@@ -727,6 +727,8 @@ int configure_filtergraph(FilterGraph *fg)
...
@@ -727,6 +727,8 @@ int configure_filtergraph(FilterGraph *fg)
fg
->
graph
->
scale_sws_opts
=
av_strdup
(
args
);
fg
->
graph
->
scale_sws_opts
=
av_strdup
(
args
);
args
[
0
]
=
0
;
args
[
0
]
=
0
;
if
(
ost
->
swr_filter_type
!=
SWR_FILTER_TYPE_KAISER
)
av_strlcatf
(
args
,
sizeof
(
args
),
"filter_type=%d:"
,
(
int
)
ost
->
swr_filter_type
);
if
(
ost
->
swr_dither_method
)
if
(
ost
->
swr_dither_method
)
av_strlcatf
(
args
,
sizeof
(
args
),
"dither_method=%d:"
,
(
int
)
ost
->
swr_dither_method
);
av_strlcatf
(
args
,
sizeof
(
args
),
"dither_method=%d:"
,
(
int
)
ost
->
swr_dither_method
);
if
(
ost
->
swr_dither_scale
!=
1
.
0
)
if
(
ost
->
swr_dither_scale
!=
1
.
0
)
...
...
ffmpeg_opt.c
View file @
b5e0e327
...
@@ -1015,6 +1015,7 @@ static OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, e
...
@@ -1015,6 +1015,7 @@ static OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, e
st
->
codec
->
flags
|=
CODEC_FLAG_GLOBAL_HEADER
;
st
->
codec
->
flags
|=
CODEC_FLAG_GLOBAL_HEADER
;
av_opt_get_int
(
sws_opts
,
"sws_flags"
,
0
,
&
ost
->
sws_flags
);
av_opt_get_int
(
sws_opts
,
"sws_flags"
,
0
,
&
ost
->
sws_flags
);
av_opt_get_int
(
swr_opts
,
"filter_type"
,
0
,
&
ost
->
swr_filter_type
);
av_opt_get_int
(
swr_opts
,
"dither_method"
,
0
,
&
ost
->
swr_dither_method
);
av_opt_get_int
(
swr_opts
,
"dither_method"
,
0
,
&
ost
->
swr_dither_method
);
av_opt_get_double
(
swr_opts
,
"dither_scale"
,
0
,
&
ost
->
swr_dither_scale
);
av_opt_get_double
(
swr_opts
,
"dither_scale"
,
0
,
&
ost
->
swr_dither_scale
);
...
...
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