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
09214f49
Commit
09214f49
authored
Oct 27, 2012
by
Marton Balint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffplay: remove uneeded format filter, buffersink format is set
Signed-off-by:
Marton Balint
<
cus@passwd.hu
>
parent
afd9e705
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
ffplay.c
ffplay.c
+2
-8
No files found.
ffplay.c
View file @
09214f49
...
...
@@ -1695,7 +1695,7 @@ static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const c
char
buffersrc_args
[
256
];
int
ret
;
AVBufferSinkParams
*
buffersink_params
=
av_buffersink_params_alloc
();
AVFilterContext
*
filt_src
=
NULL
,
*
filt_out
=
NULL
,
*
filt_
format
,
*
filt_
crop
;
AVFilterContext
*
filt_src
=
NULL
,
*
filt_out
=
NULL
,
*
filt_crop
;
AVCodecContext
*
codec
=
is
->
video_st
->
codec
;
if
(
!
buffersink_params
)
...
...
@@ -1730,13 +1730,7 @@ static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const c
avfilter_get_by_name
(
"crop"
),
"ffplay_crop"
,
"floor(in_w/2)*2:floor(in_h/2)*2"
,
NULL
,
graph
))
<
0
)
return
ret
;
if
((
ret
=
avfilter_graph_create_filter
(
&
filt_format
,
avfilter_get_by_name
(
"format"
),
"format"
,
"yuv420p"
,
NULL
,
graph
))
<
0
)
return
ret
;
if
((
ret
=
avfilter_link
(
filt_crop
,
0
,
filt_format
,
0
))
<
0
)
return
ret
;
if
((
ret
=
avfilter_link
(
filt_format
,
0
,
filt_out
,
0
))
<
0
)
if
((
ret
=
avfilter_link
(
filt_crop
,
0
,
filt_out
,
0
))
<
0
)
return
ret
;
if
((
ret
=
configure_filtergraph
(
graph
,
vfilters
,
filt_src
,
filt_crop
))
<
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