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
f0755375
Commit
f0755375
authored
Feb 17, 2012
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/filtering: fix implicit declarations and function mis-usage.
parent
4a519b6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
filtering.c
doc/examples/filtering.c
+4
-2
No files found.
doc/examples/filtering.c
View file @
f0755375
...
...
@@ -27,11 +27,13 @@
*/
#define _XOPEN_SOURCE 600
/* for usleep */
#include <unistd.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libavfilter/avfiltergraph.h>
#include <libavfilter/vsrc_buffer.h>
#include <libavfilter/avcodec.h>
#include <libavfilter/buffersink.h>
const
char
*
filter_descr
=
"scale=78:24"
;
...
...
@@ -199,7 +201,7 @@ int main(int argc, char **argv)
frame
.
pts
=
frame
.
pkt_dts
==
AV_NOPTS_VALUE
?
frame
.
pkt_dts
:
frame
.
pkt_pts
;
/* push the decoded frame into the filtergraph */
av_vsrc_buffer_add_frame
(
buffersrc_ctx
,
&
frame
);
av_vsrc_buffer_add_frame
(
buffersrc_ctx
,
&
frame
,
0
);
/* pull filtered pictures from the filtergraph */
while
(
avfilter_poll_frame
(
buffersink_ctx
->
inputs
[
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