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
d21e496c
Commit
d21e496c
authored
Sep 03, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/mptestsrc: use outlink->frame_count
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
30d40c9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
vsrc_mptestsrc.c
libavfilter/vsrc_mptestsrc.c
+1
-4
No files found.
libavfilter/vsrc_mptestsrc.c
View file @
d21e496c
...
...
@@ -52,7 +52,6 @@ enum test_type {
typedef
struct
MPTestContext
{
const
AVClass
*
class
;
unsigned
int
frame_nb
;
AVRational
frame_rate
;
int64_t
pts
,
max_pts
,
duration
;
int
hsub
,
vsub
;
...
...
@@ -260,7 +259,6 @@ static av_cold int init(AVFilterContext *ctx)
test
->
max_pts
=
test
->
duration
>=
0
?
av_rescale_q
(
test
->
duration
,
AV_TIME_BASE_Q
,
av_inv_q
(
test
->
frame_rate
))
:
-
1
;
test
->
frame_nb
=
0
;
test
->
pts
=
0
;
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"rate:%d/%d duration:%f
\n
"
,
...
...
@@ -303,7 +301,7 @@ static int request_frame(AVFilterLink *outlink)
AVFrame
*
picref
;
int
w
=
WIDTH
,
h
=
HEIGHT
,
cw
=
FF_CEIL_RSHIFT
(
w
,
test
->
hsub
),
ch
=
FF_CEIL_RSHIFT
(
h
,
test
->
vsub
);
unsigned
int
frame
=
test
->
frame_nb
;
unsigned
int
frame
=
outlink
->
frame_count
;
enum
test_type
tt
=
test
->
test
;
int
i
;
...
...
@@ -338,7 +336,6 @@ static int request_frame(AVFilterLink *outlink)
case
TEST_RING2
:
ring2_test
(
picref
->
data
[
0
],
picref
->
linesize
[
0
],
frame
%
30
);
break
;
}
test
->
frame_nb
++
;
return
ff_filter_frame
(
outlink
,
picref
);
}
...
...
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