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
b117c392
Commit
b117c392
authored
Feb 17, 2012
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/filtering: fix deprecated function calls warnings.
parent
f0755375
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
filtering.c
doc/examples/filtering.c
+4
-4
No files found.
doc/examples/filtering.c
View file @
b117c392
...
...
@@ -55,7 +55,7 @@ static int open_input_file(const char *filename)
return
ret
;
}
if
((
ret
=
av
_find_stream_info
(
fmt_ctx
))
<
0
)
{
if
((
ret
=
av
format_find_stream_info
(
fmt_ctx
,
NULL
))
<
0
)
{
av_log
(
NULL
,
AV_LOG_ERROR
,
"Cannot find stream information
\n
"
);
return
ret
;
}
...
...
@@ -70,7 +70,7 @@ static int open_input_file(const char *filename)
dec_ctx
=
fmt_ctx
->
streams
[
video_stream_index
]
->
codec
;
/* init the video decoder */
if
((
ret
=
avcodec_open
(
dec_ctx
,
dec
))
<
0
)
{
if
((
ret
=
avcodec_open
2
(
dec_ctx
,
dec
,
NULL
))
<
0
)
{
av_log
(
NULL
,
AV_LOG_ERROR
,
"Cannot open video decoder
\n
"
);
return
ret
;
}
...
...
@@ -205,7 +205,7 @@ int main(int argc, char **argv)
/* pull filtered pictures from the filtergraph */
while
(
avfilter_poll_frame
(
buffersink_ctx
->
inputs
[
0
]))
{
av_
vsink_buffer_get_video
_buffer_ref
(
buffersink_ctx
,
&
picref
,
0
);
av_
buffersink_get
_buffer_ref
(
buffersink_ctx
,
&
picref
,
0
);
if
(
picref
)
{
display_picref
(
picref
,
buffersink_ctx
->
inputs
[
0
]
->
time_base
);
avfilter_unref_buffer
(
picref
);
...
...
@@ -218,7 +218,7 @@ end:
avfilter_graph_free
(
&
filter_graph
);
if
(
dec_ctx
)
avcodec_close
(
dec_ctx
);
av
_close_input_file
(
fmt_ctx
);
av
format_close_input
(
&
fmt_ctx
);
if
(
ret
<
0
&&
ret
!=
AVERROR_EOF
)
{
char
buf
[
1024
];
...
...
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