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
be7d6710
Commit
be7d6710
authored
Jul 26, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/frei0r: use AV_OPT_TYPE_IMAGE_SIZE
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
7ac736af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
vf_frei0r.c
libavfilter/vf_frei0r.c
+1
-7
No files found.
libavfilter/vf_frei0r.c
View file @
be7d6710
...
...
@@ -67,7 +67,6 @@ typedef struct Frei0rContext {
char
*
dl_name
;
char
*
params
;
char
*
size
;
AVRational
framerate
;
/* only used by the source */
...
...
@@ -456,11 +455,6 @@ static av_cold int source_init(AVFilterContext *ctx)
{
Frei0rContext
*
s
=
ctx
->
priv
;
if
(
av_parse_video_size
(
&
s
->
w
,
&
s
->
h
,
s
->
size
)
<
0
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Invalid frame size: '%s'
\n
"
,
s
->
size
);
return
AVERROR
(
EINVAL
);
}
s
->
time_base
.
num
=
s
->
framerate
.
den
;
s
->
time_base
.
den
=
s
->
framerate
.
num
;
...
...
@@ -507,7 +501,7 @@ static int source_request_frame(AVFilterLink *outlink)
}
static
const
AVOption
frei0r_src_options
[]
=
{
{
"size"
,
"Dimensions of the generated video."
,
OFFSET
(
size
),
AV_OPT_TYPE_STRING
,
{
.
str
=
""
},
.
flags
=
FLAGS
},
{
"size"
,
"Dimensions of the generated video."
,
OFFSET
(
w
),
AV_OPT_TYPE_IMAGE_SIZE
,
{
.
str
=
"320x240"
},
.
flags
=
FLAGS
},
{
"framerate"
,
NULL
,
OFFSET
(
framerate
),
AV_OPT_TYPE_VIDEO_RATE
,
{
.
str
=
"25"
},
.
flags
=
FLAGS
},
{
"filter_name"
,
NULL
,
OFFSET
(
dl_name
),
AV_OPT_TYPE_STRING
,
.
flags
=
FLAGS
},
{
"filter_params"
,
NULL
,
OFFSET
(
params
),
AV_OPT_TYPE_STRING
,
.
flags
=
FLAGS
},
...
...
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