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
c99e5191
Commit
c99e5191
authored
Dec 05, 2014
by
Piotr Fusik
Committed by
Michael Niedermayer
Dec 05, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc/examples/filtering_video: fix frame rate
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
57bfafe7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
filtering_video.c
doc/examples/filtering_video.c
+2
-1
No files found.
doc/examples/filtering_video.c
View file @
c99e5191
...
@@ -90,6 +90,7 @@ static int init_filters(const char *filters_descr)
...
@@ -90,6 +90,7 @@ static int init_filters(const char *filters_descr)
AVFilter
*
buffersink
=
avfilter_get_by_name
(
"buffersink"
);
AVFilter
*
buffersink
=
avfilter_get_by_name
(
"buffersink"
);
AVFilterInOut
*
outputs
=
avfilter_inout_alloc
();
AVFilterInOut
*
outputs
=
avfilter_inout_alloc
();
AVFilterInOut
*
inputs
=
avfilter_inout_alloc
();
AVFilterInOut
*
inputs
=
avfilter_inout_alloc
();
AVRational
time_base
=
fmt_ctx
->
streams
[
video_stream_index
]
->
time_base
;
enum
AVPixelFormat
pix_fmts
[]
=
{
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_NONE
};
enum
AVPixelFormat
pix_fmts
[]
=
{
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_NONE
};
filter_graph
=
avfilter_graph_alloc
();
filter_graph
=
avfilter_graph_alloc
();
...
@@ -102,7 +103,7 @@ static int init_filters(const char *filters_descr)
...
@@ -102,7 +103,7 @@ static int init_filters(const char *filters_descr)
snprintf
(
args
,
sizeof
(
args
),
snprintf
(
args
,
sizeof
(
args
),
"video_size=%dx%d:pix_fmt=%d:time_base=%d/%d:pixel_aspect=%d/%d"
,
"video_size=%dx%d:pix_fmt=%d:time_base=%d/%d:pixel_aspect=%d/%d"
,
dec_ctx
->
width
,
dec_ctx
->
height
,
dec_ctx
->
pix_fmt
,
dec_ctx
->
width
,
dec_ctx
->
height
,
dec_ctx
->
pix_fmt
,
dec_ctx
->
time_base
.
num
,
dec_ctx
->
time_base
.
den
,
time_base
.
num
,
time_base
.
den
,
dec_ctx
->
sample_aspect_ratio
.
num
,
dec_ctx
->
sample_aspect_ratio
.
den
);
dec_ctx
->
sample_aspect_ratio
.
num
,
dec_ctx
->
sample_aspect_ratio
.
den
);
ret
=
avfilter_graph_create_filter
(
&
buffersrc_ctx
,
buffersrc
,
"in"
,
ret
=
avfilter_graph_create_filter
(
&
buffersrc_ctx
,
buffersrc
,
"in"
,
...
...
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