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
593aaee9
Commit
593aaee9
authored
Aug 20, 2014
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setpts: Add missing inttypes.h #include for PRId64
Also convert a debug av_log() to av_dlog().
parent
8fc6a70c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
setpts.c
libavfilter/setpts.c
+8
-9
No files found.
libavfilter/setpts.c
View file @
593aaee9
...
...
@@ -24,6 +24,8 @@
* video presentation timestamp (PTS) modification filter
*/
#include <inttypes.h>
#include "libavutil/eval.h"
#include "libavutil/internal.h"
#include "libavutil/mathematics.h"
...
...
@@ -141,15 +143,12 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
d
=
av_expr_eval
(
setpts
->
expr
,
setpts
->
var_values
,
NULL
);
frame
->
pts
=
D2TS
(
d
);
#ifdef DEBUG
av_log
(
inlink
->
dst
,
AV_LOG_DEBUG
,
"n:%"
PRId64
" interlaced:%d pts:%"
PRId64
" t:%f -> pts:%"
PRId64
" t:%f
\n
"
,
(
int64_t
)
setpts
->
var_values
[
VAR_N
],
(
int
)
setpts
->
var_values
[
VAR_INTERLACED
],
in_pts
,
in_pts
*
av_q2d
(
inlink
->
time_base
),
frame
->
pts
,
frame
->
pts
*
av_q2d
(
inlink
->
time_base
));
#endif
av_dlog
(
inlink
->
dst
,
"n:%"
PRId64
" interlaced:%d pts:%"
PRId64
" t:%f -> pts:%"
PRId64
" t:%f
\n
"
,
(
int64_t
)
setpts
->
var_values
[
VAR_N
],
(
int
)
setpts
->
var_values
[
VAR_INTERLACED
],
in_pts
,
in_pts
*
av_q2d
(
inlink
->
time_base
),
frame
->
pts
,
frame
->
pts
*
av_q2d
(
inlink
->
time_base
));
if
(
inlink
->
type
==
AVMEDIA_TYPE_VIDEO
)
{
setpts
->
var_values
[
VAR_N
]
+=
1
.
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