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
e755954a
Commit
e755954a
authored
Aug 08, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffplay: pass all sws options to the filter graph
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
165fb7eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
ffplay.c
ffplay.c
+11
-3
No files found.
ffplay.c
View file @
e755954a
...
...
@@ -1787,15 +1787,23 @@ fail:
static
int
configure_video_filters
(
AVFilterGraph
*
graph
,
VideoState
*
is
,
const
char
*
vfilters
,
AVFrame
*
frame
)
{
static
const
enum
AVPixelFormat
pix_fmts
[]
=
{
AV_PIX_FMT_YUV420P
,
AV_PIX_FMT_NONE
};
char
sws_flags_str
[
128
]
;
char
sws_flags_str
[
512
]
=
""
;
char
buffersrc_args
[
256
];
int
ret
;
AVFilterContext
*
filt_src
=
NULL
,
*
filt_out
=
NULL
,
*
last_filter
=
NULL
;
AVCodecContext
*
codec
=
is
->
video_st
->
codec
;
AVRational
fr
=
av_guess_frame_rate
(
is
->
ic
,
is
->
video_st
,
NULL
);
AVDictionaryEntry
*
e
=
NULL
;
while
((
e
=
av_dict_get
(
sws_dict
,
""
,
e
,
AV_DICT_IGNORE_SUFFIX
)))
{
if
(
!
strcmp
(
e
->
key
,
"sws_flags"
))
{
av_strlcatf
(
sws_flags_str
,
sizeof
(
sws_flags_str
),
"%s=%s:"
,
"flags"
,
e
->
value
);
}
else
av_strlcatf
(
sws_flags_str
,
sizeof
(
sws_flags_str
),
"%s=%s:"
,
e
->
key
,
e
->
value
);
}
if
(
strlen
(
sws_flags_str
))
sws_flags_str
[
strlen
(
sws_flags_str
)
-
1
]
=
'\0'
;
av_opt_get_int
(
sws_opts
,
"sws_flags"
,
0
,
&
sws_flags
);
snprintf
(
sws_flags_str
,
sizeof
(
sws_flags_str
),
"flags=%"
PRId64
,
sws_flags
);
graph
->
scale_sws_opts
=
av_strdup
(
sws_flags_str
);
snprintf
(
buffersrc_args
,
sizeof
(
buffersrc_args
),
...
...
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