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
de058773
Commit
de058773
authored
Jun 20, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: remove redundant checks after av_parse_video_rate()
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
4da42ebe
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
12 deletions
+6
-12
vf_frei0r.c
libavfilter/vf_frei0r.c
+1
-2
vsrc_color.c
libavfilter/vsrc_color.c
+2
-4
vsrc_mandelbrot.c
libavfilter/vsrc_mandelbrot.c
+1
-2
vsrc_mptestsrc.c
libavfilter/vsrc_mptestsrc.c
+1
-2
vsrc_testsrc.c
libavfilter/vsrc_testsrc.c
+1
-2
No files found.
libavfilter/vf_frei0r.c
View file @
de058773
...
...
@@ -400,8 +400,7 @@ static av_cold int source_init(AVFilterContext *ctx, const char *args, void *opa
return
AVERROR
(
EINVAL
);
}
if
(
av_parse_video_rate
(
&
frame_rate_q
,
frame_rate
)
<
0
||
frame_rate_q
.
den
<=
0
||
frame_rate_q
.
num
<=
0
)
{
if
(
av_parse_video_rate
(
&
frame_rate_q
,
frame_rate
)
<
0
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Invalid frame rate: '%s'
\n
"
,
frame_rate
);
return
AVERROR
(
EINVAL
);
}
...
...
libavfilter/vsrc_color.c
View file @
de058773
...
...
@@ -90,8 +90,7 @@ static av_cold int color_init(AVFilterContext *ctx, const char *args, void *opaq
av_log
(
ctx
,
AV_LOG_ERROR
,
"Error parsing options string: '%s'
\n
"
,
args
);
goto
end
;
}
if
(
av_parse_video_rate
(
&
frame_rate_q
,
color
->
rate_str
)
<
0
||
frame_rate_q
.
den
<=
0
||
frame_rate_q
.
num
<=
0
)
{
if
(
av_parse_video_rate
(
&
frame_rate_q
,
color
->
rate_str
)
<
0
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Invalid frame rate: %s
\n
"
,
color
->
rate_str
);
ret
=
AVERROR
(
EINVAL
);
goto
end
;
...
...
@@ -107,8 +106,7 @@ static av_cold int color_init(AVFilterContext *ctx, const char *args, void *opaq
av_log
(
ctx
,
AV_LOG_ERROR
,
"Invalid frame size: %s
\n
"
,
frame_size
);
return
AVERROR
(
EINVAL
);
}
if
(
av_parse_video_rate
(
&
frame_rate_q
,
frame_rate
)
<
0
||
frame_rate_q
.
den
<=
0
||
frame_rate_q
.
num
<=
0
)
{
if
(
av_parse_video_rate
(
&
frame_rate_q
,
frame_rate
)
<
0
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Invalid frame rate: %s
\n
"
,
frame_rate
);
return
AVERROR
(
EINVAL
);
}
...
...
libavfilter/vsrc_mandelbrot.c
View file @
de058773
...
...
@@ -131,8 +131,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
mb
->
start_scale
/=
mb
->
h
;
mb
->
end_scale
/=
mb
->
h
;
if
(
av_parse_video_rate
(
&
rate_q
,
mb
->
rate
)
<
0
||
rate_q
.
den
<=
0
||
rate_q
.
num
<=
0
)
{
if
(
av_parse_video_rate
(
&
rate_q
,
mb
->
rate
)
<
0
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Invalid frame rate: %s
\n
"
,
mb
->
rate
);
return
AVERROR
(
EINVAL
);
}
...
...
libavfilter/vsrc_mptestsrc.c
View file @
de058773
...
...
@@ -276,8 +276,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
return
ret
;
}
if
((
ret
=
av_parse_video_rate
(
&
frame_rate_q
,
test
->
rate
))
<
0
||
frame_rate_q
.
den
<=
0
||
frame_rate_q
.
num
<=
0
)
{
if
((
ret
=
av_parse_video_rate
(
&
frame_rate_q
,
test
->
rate
))
<
0
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Invalid frame rate: '%s'
\n
"
,
test
->
rate
);
return
ret
;
}
...
...
libavfilter/vsrc_testsrc.c
View file @
de058773
...
...
@@ -86,8 +86,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
return
ret
;
}
if
((
ret
=
av_parse_video_rate
(
&
frame_rate_q
,
test
->
rate
))
<
0
||
frame_rate_q
.
den
<=
0
||
frame_rate_q
.
num
<=
0
)
{
if
((
ret
=
av_parse_video_rate
(
&
frame_rate_q
,
test
->
rate
))
<
0
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Invalid frame rate: '%s'
\n
"
,
test
->
rate
);
return
ret
;
}
...
...
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