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
44f660e7
Commit
44f660e7
authored
Aug 26, 2015
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: remove FF_LINK_FLAG_REQUEST_LOOP.
It has no longer any effect.
parent
2a351f6c
Hide whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
2 additions
and
103 deletions
+2
-103
af_afade.c
libavfilter/af_afade.c
+0
-1
af_asetnsamples.c
libavfilter/af_asetnsamples.c
+0
-1
af_atempo.c
libavfilter/af_atempo.c
+0
-2
af_compand.c
libavfilter/af_compand.c
+0
-1
af_dynaudnorm.c
libavfilter/af_dynaudnorm.c
+0
-7
af_silenceremove.c
libavfilter/af_silenceremove.c
+0
-8
avf_showfreqs.c
libavfilter/avf_showfreqs.c
+0
-1
avfilter.c
libavfilter/avfilter.c
+0
-1
f_ebur128.c
libavfilter/f_ebur128.c
+0
-4
f_interleave.c
libavfilter/f_interleave.c
+0
-2
f_reverse.c
libavfilter/f_reverse.c
+0
-8
framesync.c
libavfilter/framesync.c
+0
-1
internal.h
libavfilter/internal.h
+0
-14
trim.c
libavfilter/trim.c
+0
-8
vf_atadenoise.c
libavfilter/vf_atadenoise.c
+0
-7
vf_blend.c
libavfilter/vf_blend.c
+2
-3
vf_decimate.c
libavfilter/vf_decimate.c
+0
-1
vf_detelecine.c
libavfilter/vf_detelecine.c
+0
-1
vf_fieldmatch.c
libavfilter/vf_fieldmatch.c
+0
-1
vf_framerate.c
libavfilter/vf_framerate.c
+0
-1
vf_framestep.c
libavfilter/vf_framestep.c
+0
-1
vf_idet.c
libavfilter/vf_idet.c
+0
-7
vf_interlace.c
libavfilter/vf_interlace.c
+0
-1
vf_palettegen.c
libavfilter/vf_palettegen.c
+0
-1
vf_pullup.c
libavfilter/vf_pullup.c
+0
-7
vf_random.c
libavfilter/vf_random.c
+0
-7
vf_stereo3d.c
libavfilter/vf_stereo3d.c
+0
-1
vf_telecine.c
libavfilter/vf_telecine.c
+0
-1
vf_tile.c
libavfilter/vf_tile.c
+0
-2
vf_tinterlace.c
libavfilter/vf_tinterlace.c
+0
-1
vf_w3fdif.c
libavfilter/vf_w3fdif.c
+0
-1
No files found.
libavfilter/af_afade.c
View file @
44f660e7
...
...
@@ -611,7 +611,6 @@ static int acrossfade_config_output(AVFilterLink *outlink)
outlink
->
time_base
=
ctx
->
inputs
[
0
]
->
time_base
;
outlink
->
channel_layout
=
ctx
->
inputs
[
0
]
->
channel_layout
;
outlink
->
channels
=
ctx
->
inputs
[
0
]
->
channels
;
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
switch
(
outlink
->
format
)
{
case
AV_SAMPLE_FMT_DBL
:
s
->
crossfade_samples
=
crossfade_samples_dbl
;
break
;
...
...
libavfilter/af_asetnsamples.c
View file @
44f660e7
...
...
@@ -77,7 +77,6 @@ static int config_props_output(AVFilterLink *outlink)
asns
->
fifo
=
av_audio_fifo_alloc
(
outlink
->
format
,
outlink
->
channels
,
asns
->
nb_out_samples
);
if
(
!
asns
->
fifo
)
return
AVERROR
(
ENOMEM
);
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
return
0
;
}
...
...
libavfilter/af_atempo.c
View file @
44f660e7
...
...
@@ -1046,8 +1046,6 @@ static int config_props(AVFilterLink *inlink)
int
sample_rate
=
(
int
)
inlink
->
sample_rate
;
int
channels
=
av_get_channel_layout_nb_channels
(
inlink
->
channel_layout
);
ctx
->
outputs
[
0
]
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
return
yae_reset
(
atempo
,
format
,
sample_rate
,
channels
);
}
...
...
libavfilter/af_compand.c
View file @
44f660e7
...
...
@@ -531,7 +531,6 @@ static int config_output(AVFilterLink *outlink)
if
(
err
)
return
err
;
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
s
->
compand
=
compand_delay
;
return
0
;
}
...
...
libavfilter/af_dynaudnorm.c
View file @
44f660e7
...
...
@@ -305,12 +305,6 @@ static int config_input(AVFilterLink *inlink)
return
0
;
}
static
int
config_output
(
AVFilterLink
*
outlink
)
{
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
return
0
;
}
static
inline
double
fade
(
double
prev
,
double
next
,
int
pos
,
double
*
fade_factors
[
2
])
{
...
...
@@ -721,7 +715,6 @@ static const AVFilterPad avfilter_af_dynaudnorm_outputs[] = {
{
.
name
=
"default"
,
.
type
=
AVMEDIA_TYPE_AUDIO
,
.
config_props
=
config_output
,
.
request_frame
=
request_frame
,
},
{
NULL
}
...
...
libavfilter/af_silenceremove.c
View file @
44f660e7
...
...
@@ -153,13 +153,6 @@ static int config_input(AVFilterLink *inlink)
return
0
;
}
static
int
config_output
(
AVFilterLink
*
outlink
)
{
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
return
0
;
}
static
double
compute_rms
(
SilenceRemoveContext
*
s
,
double
sample
)
{
double
new_sum
;
...
...
@@ -463,7 +456,6 @@ static const AVFilterPad silenceremove_outputs[] = {
{
.
name
=
"default"
,
.
type
=
AVMEDIA_TYPE_AUDIO
,
.
config_props
=
config_output
,
.
request_frame
=
request_frame
,
},
{
NULL
}
...
...
libavfilter/avf_showfreqs.c
View file @
44f660e7
...
...
@@ -300,7 +300,6 @@ static int config_output(AVFilterLink *outlink)
s
->
scale
+=
s
->
window_func_lut
[
i
]
*
s
->
window_func_lut
[
i
];
}
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
outlink
->
frame_rate
=
av_make_q
(
inlink
->
sample_rate
,
s
->
win_size
*
(
1
.
-
s
->
overlap
));
outlink
->
sample_aspect_ratio
=
(
AVRational
){
1
,
1
};
outlink
->
w
=
s
->
w
;
...
...
libavfilter/avfilter.c
View file @
44f660e7
...
...
@@ -1097,7 +1097,6 @@ static int ff_filter_frame_needs_framing(AVFilterLink *link, AVFrame *frame)
int
nb_channels
=
av_frame_get_channels
(
frame
);
int
ret
=
0
;
link
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
/* Handle framing (min_samples, max_samples) */
while
(
insamples
)
{
if
(
!
pbuf
)
{
...
...
libavfilter/f_ebur128.c
View file @
44f660e7
...
...
@@ -337,8 +337,6 @@ static int config_video_output(AVFilterLink *outlink)
DRAW_RECT
(
ebur128
->
graph
);
DRAW_RECT
(
ebur128
->
gauge
);
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
return
0
;
}
...
...
@@ -398,8 +396,6 @@ static int config_audio_output(AVFilterLink *outlink)
return
AVERROR
(
ENOMEM
);
}
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
#if CONFIG_SWRESAMPLE
if
(
ebur128
->
peak_mode
&
PEAK_MODE_TRUE_PEAKS
)
{
int
ret
;
...
...
libavfilter/f_interleave.c
View file @
44f660e7
...
...
@@ -180,8 +180,6 @@ static int config_output(AVFilterLink *outlink)
}
}
}
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
return
0
;
}
...
...
libavfilter/f_reverse.c
View file @
44f660e7
...
...
@@ -62,12 +62,6 @@ static av_cold void uninit(AVFilterContext *ctx)
av_freep
(
&
s
->
frames
);
}
static
int
config_output
(
AVFilterLink
*
outlink
)
{
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
return
0
;
}
static
int
filter_frame
(
AVFilterLink
*
inlink
,
AVFrame
*
in
)
{
AVFilterContext
*
ctx
=
inlink
->
dst
;
...
...
@@ -129,7 +123,6 @@ static const AVFilterPad reverse_outputs[] = {
.
name
=
"default"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
request_frame
=
request_frame
,
.
config_props
=
config_output
,
},
{
NULL
}
};
...
...
@@ -240,7 +233,6 @@ static const AVFilterPad areverse_outputs[] = {
.
name
=
"default"
,
.
type
=
AVMEDIA_TYPE_AUDIO
,
.
request_frame
=
areverse_request_frame
,
.
config_props
=
config_output
,
},
{
NULL
}
};
...
...
libavfilter/framesync.c
View file @
44f660e7
...
...
@@ -322,7 +322,6 @@ int ff_framesync_request_frame(FFFrameSync *fs, AVFilterLink *outlink)
return
0
;
if
(
fs
->
eof
)
return
AVERROR_EOF
;
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
input
=
fs
->
in_request
;
ret
=
ff_request_frame
(
ctx
->
inputs
[
input
]);
if
(
ret
==
AVERROR_EOF
)
{
...
...
libavfilter/internal.h
View file @
44f660e7
...
...
@@ -335,20 +335,6 @@ int ff_request_frame(AVFilterLink *link);
*/
int
ff_filter_frame
(
AVFilterLink
*
link
,
AVFrame
*
frame
);
/**
* Flags for AVFilterLink.flags.
*/
enum
{
/**
* Frame requests may need to loop in order to be fulfilled.
* A filter must set this flags on an output link if it may return 0 in
* request_frame() without filtering a frame.
*/
FF_LINK_FLAG_REQUEST_LOOP
=
1
,
};
/**
* Allocate a new filter context and return it.
*
...
...
libavfilter/trim.c
View file @
44f660e7
...
...
@@ -114,12 +114,6 @@ static int config_input(AVFilterLink *inlink)
return
0
;
}
static
int
config_output
(
AVFilterLink
*
outlink
)
{
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
return
0
;
}
#define OFFSET(x) offsetof(TrimContext, x)
#define COMMON_OPTS \
{ "starti", "Timestamp of the first frame that " \
...
...
@@ -223,7 +217,6 @@ static const AVFilterPad trim_outputs[] = {
{
.
name
=
"default"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
config_props
=
config_output
,
},
{
NULL
}
};
...
...
@@ -378,7 +371,6 @@ static const AVFilterPad atrim_outputs[] = {
{
.
name
=
"default"
,
.
type
=
AVMEDIA_TYPE_AUDIO
,
.
config_props
=
config_output
,
},
{
NULL
}
};
...
...
libavfilter/vf_atadenoise.c
View file @
44f660e7
...
...
@@ -285,12 +285,6 @@ static int config_input(AVFilterLink *inlink)
return
0
;
}
static
int
config_output
(
AVFilterLink
*
outlink
)
{
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
return
0
;
}
static
int
filter_frame
(
AVFilterLink
*
inlink
,
AVFrame
*
buf
)
{
AVFilterContext
*
ctx
=
inlink
->
dst
;
...
...
@@ -401,7 +395,6 @@ static const AVFilterPad outputs[] = {
.
name
=
"default"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
request_frame
=
request_frame
,
.
config_props
=
config_output
,
},
{
NULL
}
};
...
...
libavfilter/vf_blend.c
View file @
44f660e7
...
...
@@ -467,9 +467,8 @@ static int config_output(AVFilterLink *outlink)
is_16bit
=
pix_desc
->
comp
[
0
].
depth
==
16
;
s
->
nb_planes
=
av_pix_fmt_count_planes
(
toplink
->
format
);
if
(
s
->
tblend
)
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
else
if
((
ret
=
ff_dualinput_init
(
ctx
,
&
s
->
dinput
))
<
0
)
if
(
!
s
->
tblend
)
if
((
ret
=
ff_dualinput_init
(
ctx
,
&
s
->
dinput
))
<
0
)
return
ret
;
for
(
plane
=
0
;
plane
<
FF_ARRAY_ELEMS
(
s
->
params
);
plane
++
)
{
...
...
libavfilter/vf_decimate.c
View file @
44f660e7
...
...
@@ -372,7 +372,6 @@ static int config_output(AVFilterLink *outlink)
fps
=
av_mul_q
(
fps
,
(
AVRational
){
dm
->
cycle
-
1
,
dm
->
cycle
});
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"FPS: %d/%d -> %d/%d
\n
"
,
inlink
->
frame_rate
.
num
,
inlink
->
frame_rate
.
den
,
fps
.
num
,
fps
.
den
);
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
outlink
->
time_base
=
inlink
->
time_base
;
outlink
->
frame_rate
=
fps
;
outlink
->
sample_aspect_ratio
=
inlink
->
sample_aspect_ratio
;
...
...
libavfilter/vf_detelecine.c
View file @
44f660e7
...
...
@@ -170,7 +170,6 @@ static int config_output(AVFilterLink *outlink)
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"FPS: %d/%d -> %d/%d
\n
"
,
inlink
->
frame_rate
.
num
,
inlink
->
frame_rate
.
den
,
fps
.
num
,
fps
.
den
);
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
outlink
->
frame_rate
=
fps
;
outlink
->
time_base
=
av_mul_q
(
inlink
->
time_base
,
s
->
pts
);
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"TB: %d/%d -> %d/%d
\n
"
,
...
...
libavfilter/vf_fieldmatch.c
View file @
44f660e7
...
...
@@ -953,7 +953,6 @@ static int config_output(AVFilterLink *outlink)
const
AVFilterLink
*
inlink
=
ctx
->
inputs
[
fm
->
ppsrc
?
INPUT_CLEANSRC
:
INPUT_MAIN
];
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
outlink
->
time_base
=
inlink
->
time_base
;
outlink
->
sample_aspect_ratio
=
inlink
->
sample_aspect_ratio
;
outlink
->
frame_rate
=
inlink
->
frame_rate
;
...
...
libavfilter/vf_framerate.c
View file @
44f660e7
...
...
@@ -639,7 +639,6 @@ static int config_output(AVFilterLink *outlink)
outlink
->
frame_rate
=
s
->
dest_frame_rate
;
outlink
->
time_base
=
s
->
dest_time_base
;
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
ff_dlog
(
ctx
,
"config_output() output time base:%u/%u (%f) w:%d h:%d
\n
"
,
...
...
libavfilter/vf_framestep.c
View file @
44f660e7
...
...
@@ -49,7 +49,6 @@ static int config_output_props(AVFilterLink *outlink)
FrameStepContext
*
framestep
=
ctx
->
priv
;
AVFilterLink
*
inlink
=
ctx
->
inputs
[
0
];
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
outlink
->
frame_rate
=
av_div_q
(
inlink
->
frame_rate
,
(
AVRational
){
framestep
->
frame_step
,
1
});
...
...
libavfilter/vf_idet.c
View file @
44f660e7
...
...
@@ -400,12 +400,6 @@ static int query_formats(AVFilterContext *ctx)
return
ff_set_common_formats
(
ctx
,
fmts_list
);
}
static
int
config_output
(
AVFilterLink
*
outlink
)
{
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
return
0
;
}
static
av_cold
int
init
(
AVFilterContext
*
ctx
)
{
IDETContext
*
idet
=
ctx
->
priv
;
...
...
@@ -440,7 +434,6 @@ static const AVFilterPad idet_outputs[] = {
{
.
name
=
"default"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
config_props
=
config_output
,
.
request_frame
=
request_frame
},
{
NULL
}
...
...
libavfilter/vf_interlace.c
View file @
44f660e7
...
...
@@ -113,7 +113,6 @@ static int config_out_props(AVFilterLink *outlink)
// half framerate
outlink
->
time_base
.
num
*=
2
;
outlink
->
frame_rate
.
den
*=
2
;
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
if
(
s
->
lowpass
)
{
...
...
libavfilter/vf_palettegen.c
View file @
44f660e7
...
...
@@ -520,7 +520,6 @@ static int config_output(AVFilterLink *outlink)
{
outlink
->
w
=
outlink
->
h
=
16
;
outlink
->
sample_aspect_ratio
=
av_make_q
(
1
,
1
);
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
return
0
;
}
...
...
libavfilter/vf_pullup.c
View file @
44f660e7
...
...
@@ -220,12 +220,6 @@ static int config_input(AVFilterLink *inlink)
return
0
;
}
static
int
config_output
(
AVFilterLink
*
outlink
)
{
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
return
0
;
}
static
PullupBuffer
*
pullup_lock_buffer
(
PullupBuffer
*
b
,
int
parity
)
{
if
(
!
b
)
...
...
@@ -766,7 +760,6 @@ static const AVFilterPad pullup_outputs[] = {
{
.
name
=
"default"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
config_props
=
config_output
,
},
{
NULL
}
};
...
...
libavfilter/vf_random.c
View file @
44f660e7
...
...
@@ -64,12 +64,6 @@ static av_cold int init(AVFilterContext *ctx)
return
0
;
}
static
int
config_output
(
AVFilterLink
*
outlink
)
{
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
return
0
;
}
static
int
filter_frame
(
AVFilterLink
*
inlink
,
AVFrame
*
in
)
{
AVFilterContext
*
ctx
=
inlink
->
dst
;
...
...
@@ -128,7 +122,6 @@ static const AVFilterPad random_outputs[] = {
.
name
=
"default"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
request_frame
=
request_frame
,
.
config_props
=
config_output
,
},
{
NULL
}
};
...
...
libavfilter/vf_stereo3d.c
View file @
44f660e7
...
...
@@ -373,7 +373,6 @@ static int config_output(AVFilterLink *outlink)
break
;
case
ALTERNATING_RL
:
case
ALTERNATING_LR
:
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
fps
.
den
*=
2
;
tb
.
num
*=
2
;
break
;
...
...
libavfilter/vf_telecine.c
View file @
44f660e7
...
...
@@ -157,7 +157,6 @@ static int config_output(AVFilterLink *outlink)
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"FPS: %d/%d -> %d/%d
\n
"
,
inlink
->
frame_rate
.
num
,
inlink
->
frame_rate
.
den
,
fps
.
num
,
fps
.
den
);
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
outlink
->
frame_rate
=
fps
;
outlink
->
time_base
=
av_mul_q
(
inlink
->
time_base
,
s
->
pts
);
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"TB: %d/%d -> %d/%d
\n
"
,
...
...
libavfilter/vf_tile.c
View file @
44f660e7
...
...
@@ -116,8 +116,6 @@ static int config_props(AVFilterLink *outlink)
ff_draw_init
(
&
tile
->
draw
,
inlink
->
format
,
0
);
ff_draw_color
(
&
tile
->
draw
,
&
tile
->
blank
,
tile
->
rgba_color
);
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
return
0
;
}
...
...
libavfilter/vf_tinterlace.c
View file @
44f660e7
...
...
@@ -117,7 +117,6 @@ static int config_out_props(AVFilterLink *outlink)
int
i
;
tinterlace
->
vsub
=
desc
->
log2_chroma_h
;
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
outlink
->
w
=
inlink
->
w
;
outlink
->
h
=
tinterlace
->
mode
==
MODE_MERGE
||
tinterlace
->
mode
==
MODE_PAD
?
inlink
->
h
*
2
:
inlink
->
h
;
...
...
libavfilter/vf_w3fdif.c
View file @
44f660e7
...
...
@@ -117,7 +117,6 @@ static int config_output(AVFilterLink *outlink)
outlink
->
time_base
.
den
=
inlink
->
time_base
.
den
*
2
;
outlink
->
frame_rate
.
num
=
inlink
->
frame_rate
.
num
*
2
;
outlink
->
frame_rate
.
den
=
inlink
->
frame_rate
.
den
;
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
return
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