Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
846f1421
Commit
846f1421
authored
8 years ago
by
Nicolas George
Browse files
Options
Downloads
Patches
Plain Diff
lavfi: merge two variables after a recent commit.
parent
28c62df6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavfilter/avfilter.c
+4
-7
4 additions, 7 deletions
libavfilter/avfilter.c
with
4 additions
and
7 deletions
libavfilter/avfilter.c
+
4
−
7
View file @
846f1421
...
@@ -1099,7 +1099,6 @@ static int ff_filter_frame_framed(AVFilterLink *link, AVFrame *frame)
...
@@ -1099,7 +1099,6 @@ static int ff_filter_frame_framed(AVFilterLink *link, AVFrame *frame)
int
(
*
filter_frame
)(
AVFilterLink
*
,
AVFrame
*
);
int
(
*
filter_frame
)(
AVFilterLink
*
,
AVFrame
*
);
AVFilterContext
*
dstctx
=
link
->
dst
;
AVFilterContext
*
dstctx
=
link
->
dst
;
AVFilterPad
*
dst
=
link
->
dstpad
;
AVFilterPad
*
dst
=
link
->
dstpad
;
AVFrame
*
out
=
NULL
;
int
ret
;
int
ret
;
AVFilterCommand
*
cmd
=
link
->
dst
->
command_queue
;
AVFilterCommand
*
cmd
=
link
->
dst
->
command_queue
;
int64_t
pts
;
int64_t
pts
;
...
@@ -1112,9 +1111,8 @@ static int ff_filter_frame_framed(AVFilterLink *link, AVFrame *frame)
...
@@ -1112,9 +1111,8 @@ static int ff_filter_frame_framed(AVFilterLink *link, AVFrame *frame)
if
(
ret
<
0
)
if
(
ret
<
0
)
goto
fail
;
goto
fail
;
}
}
out
=
frame
;
/* TODO rename */
while
(
cmd
&&
cmd
->
time
<=
out
->
pts
*
av_q2d
(
link
->
time_base
)){
while
(
cmd
&&
cmd
->
time
<=
frame
->
pts
*
av_q2d
(
link
->
time_base
)){
av_log
(
link
->
dst
,
AV_LOG_DEBUG
,
av_log
(
link
->
dst
,
AV_LOG_DEBUG
,
"Processing command time:%f command:%s arg:%s
\n
"
,
"Processing command time:%f command:%s arg:%s
\n
"
,
cmd
->
time
,
cmd
->
command
,
cmd
->
arg
);
cmd
->
time
,
cmd
->
command
,
cmd
->
arg
);
...
@@ -1123,9 +1121,9 @@ static int ff_filter_frame_framed(AVFilterLink *link, AVFrame *frame)
...
@@ -1123,9 +1121,9 @@ static int ff_filter_frame_framed(AVFilterLink *link, AVFrame *frame)
cmd
=
link
->
dst
->
command_queue
;
cmd
=
link
->
dst
->
command_queue
;
}
}
pts
=
out
->
pts
;
pts
=
frame
->
pts
;
if
(
dstctx
->
enable_str
)
{
if
(
dstctx
->
enable_str
)
{
int64_t
pos
=
av_frame_get_pkt_pos
(
out
);
int64_t
pos
=
av_frame_get_pkt_pos
(
frame
);
dstctx
->
var_values
[
VAR_N
]
=
link
->
frame_count_out
;
dstctx
->
var_values
[
VAR_N
]
=
link
->
frame_count_out
;
dstctx
->
var_values
[
VAR_T
]
=
pts
==
AV_NOPTS_VALUE
?
NAN
:
pts
*
av_q2d
(
link
->
time_base
);
dstctx
->
var_values
[
VAR_T
]
=
pts
==
AV_NOPTS_VALUE
?
NAN
:
pts
*
av_q2d
(
link
->
time_base
);
dstctx
->
var_values
[
VAR_W
]
=
link
->
w
;
dstctx
->
var_values
[
VAR_W
]
=
link
->
w
;
...
@@ -1137,13 +1135,12 @@ static int ff_filter_frame_framed(AVFilterLink *link, AVFrame *frame)
...
@@ -1137,13 +1135,12 @@ static int ff_filter_frame_framed(AVFilterLink *link, AVFrame *frame)
(
dstctx
->
filter
->
flags
&
AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
))
(
dstctx
->
filter
->
flags
&
AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
))
filter_frame
=
default_filter_frame
;
filter_frame
=
default_filter_frame
;
}
}
ret
=
filter_frame
(
link
,
out
);
ret
=
filter_frame
(
link
,
frame
);
link
->
frame_count_out
++
;
link
->
frame_count_out
++
;
ff_update_link_current_pts
(
link
,
pts
);
ff_update_link_current_pts
(
link
,
pts
);
return
ret
;
return
ret
;
fail:
fail:
av_frame_free
(
&
out
);
av_frame_free
(
&
frame
);
av_frame_free
(
&
frame
);
return
ret
;
return
ret
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment