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
2090abcc
Commit
2090abcc
authored
Jun 18, 2013
by
Mark Visser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add the start_number offset to var_values[VAR_N] directly, instead of adding it in func_frame_num
parent
0defc77e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vf_drawtext.c
libavfilter/vf_drawtext.c
+2
-2
No files found.
libavfilter/vf_drawtext.c
View file @
2090abcc
...
...
@@ -616,7 +616,7 @@ static int func_frame_num(AVFilterContext *ctx, AVBPrint *bp,
{
DrawTextContext
*
s
=
ctx
->
priv
;
av_bprintf
(
bp
,
"%d"
,
(
int
)
s
->
var_values
[
VAR_N
]
+
s
->
start_number
);
av_bprintf
(
bp
,
"%d"
,
(
int
)
s
->
var_values
[
VAR_N
]);
return
0
;
}
...
...
@@ -980,7 +980,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
if
((
ret
=
load_textfile
(
ctx
))
<
0
)
return
ret
;
s
->
var_values
[
VAR_N
]
=
inlink
->
frame_count
;
s
->
var_values
[
VAR_N
]
=
inlink
->
frame_count
+
s
->
start_number
;
s
->
var_values
[
VAR_T
]
=
frame
->
pts
==
AV_NOPTS_VALUE
?
NAN
:
frame
->
pts
*
av_q2d
(
inlink
->
time_base
);
...
...
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