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
dbce8cda
Commit
dbce8cda
authored
Mar 27, 2015
by
Himangi Saraogi
Committed by
Michael Niedermayer
Mar 27, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_telecine: Avoid floating point values
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
174330b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
vf_telecine.c
libavfilter/vf_telecine.c
+4
-3
No files found.
libavfilter/vf_telecine.c
View file @
dbce8cda
...
...
@@ -41,7 +41,7 @@ typedef struct {
int64_t
start_time
;
AVRational
pts
;
double
ts_unit
;
AVRational
ts_unit
;
int
out_cnt
;
int
occupied
;
...
...
@@ -164,7 +164,7 @@ static int config_output(AVFilterLink *outlink)
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"TB: %d/%d -> %d/%d
\n
"
,
inlink
->
time_base
.
num
,
inlink
->
time_base
.
den
,
outlink
->
time_base
.
num
,
outlink
->
time_base
.
den
);
s
->
ts_unit
=
av_
q2d
(
av_inv_q
(
av_mul_q
(
fps
,
outlink
->
time_base
)
));
s
->
ts_unit
=
av_
inv_q
(
av_mul_q
(
fps
,
outlink
->
time_base
));
return
0
;
}
...
...
@@ -243,7 +243,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
av_frame_copy_props
(
frame
,
inpicref
);
frame
->
pts
=
((
s
->
start_time
==
AV_NOPTS_VALUE
)
?
0
:
s
->
start_time
)
+
outlink
->
frame_count
*
s
->
ts_unit
;
av_rescale
(
outlink
->
frame_count
,
s
->
ts_unit
.
num
,
s
->
ts_unit
.
den
);
ret
=
ff_filter_frame
(
outlink
,
frame
);
}
av_frame_free
(
&
inpicref
);
...
...
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