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
c6ef3f44
Commit
c6ef3f44
authored
Aug 16, 2011
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffplay: in input_config_props(), prefer "s" over unnecessary "c" temporary variable
Sligthly improve readability, reduce redundancy.
parent
f8eaa006
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
ffplay.c
ffplay.c
+4
-5
No files found.
ffplay.c
View file @
c6ef3f44
...
...
@@ -1640,14 +1640,13 @@ static int input_query_formats(AVFilterContext *ctx)
static
int
input_config_props
(
AVFilterLink
*
link
)
{
FilterPriv
*
priv
=
link
->
src
->
priv
;
AVCodecContext
*
c
=
priv
->
is
->
video_st
->
codec
;
AVStream
*
s
=
priv
->
is
->
video_st
;
link
->
w
=
c
->
width
;
link
->
h
=
c
->
height
;
link
->
w
=
s
->
code
c
->
width
;
link
->
h
=
s
->
code
c
->
height
;
link
->
sample_aspect_ratio
=
s
->
sample_aspect_ratio
.
num
?
s
->
sample_aspect_ratio
:
c
->
sample_aspect_ratio
;
link
->
time_base
=
priv
->
is
->
video_st
->
time_base
;
s
->
sample_aspect_ratio
:
s
->
code
c
->
sample_aspect_ratio
;
link
->
time_base
=
s
->
time_base
;
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