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
1eb54323
Commit
1eb54323
authored
May 23, 2019
by
Marton Balint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/f_loop: warn about unset loop sizes
Signed-off-by:
Marton Balint
<
cus@passwd.hu
>
parent
87e0247a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
f_loop.c
libavfilter/f_loop.c
+13
-0
No files found.
libavfilter/f_loop.c
View file @
1eb54323
...
...
@@ -55,6 +55,15 @@ typedef struct LoopContext {
#define VFLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
#define OFFSET(x) offsetof(LoopContext, x)
static
void
check_size
(
AVFilterContext
*
ctx
)
{
LoopContext
*
s
=
ctx
->
priv
;
if
(
!
s
->
size
)
av_log
(
ctx
,
AV_LOG_WARNING
,
"Number of %s to loop is not set!
\n
"
,
ctx
->
input_pads
[
0
].
type
==
AVMEDIA_TYPE_VIDEO
?
"frames"
:
"samples"
);
}
#if CONFIG_ALOOP_FILTER
static
int
aconfig_input
(
AVFilterLink
*
inlink
)
...
...
@@ -67,6 +76,8 @@ static int aconfig_input(AVFilterLink *inlink)
if
(
!
s
->
fifo
||
!
s
->
left
)
return
AVERROR
(
ENOMEM
);
check_size
(
ctx
);
return
0
;
}
...
...
@@ -250,6 +261,8 @@ static av_cold int init(AVFilterContext *ctx)
if
(
!
s
->
frames
)
return
AVERROR
(
ENOMEM
);
check_size
(
ctx
);
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