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
10bcc41b
Commit
10bcc41b
authored
Feb 07, 2018
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples: Don't call deprecated functions which don't do anything
parent
c69054fa
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
0 additions
and
40 deletions
+0
-40
avio_dir_cmd.c
doc/examples/avio_dir_cmd.c
+0
-2
avio_reading.c
doc/examples/avio_reading.c
+0
-3
decode_audio.c
doc/examples/decode_audio.c
+0
-3
decode_video.c
doc/examples/decode_video.c
+0
-2
demuxing_decoding.c
doc/examples/demuxing_decoding.c
+0
-3
encode_audio.c
doc/examples/encode_audio.c
+0
-3
encode_video.c
doc/examples/encode_video.c
+0
-2
extract_mvs.c
doc/examples/extract_mvs.c
+0
-2
filtering_audio.c
doc/examples/filtering_audio.c
+0
-1
filtering_video.c
doc/examples/filtering_video.c
+0
-1
http_multiclient.c
doc/examples/http_multiclient.c
+0
-1
hw_decode.c
doc/examples/hw_decode.c
+0
-2
metadata.c
doc/examples/metadata.c
+0
-1
muxing.c
doc/examples/muxing.c
+0
-3
qsvdec.c
doc/examples/qsvdec.c
+0
-2
remuxing.c
doc/examples/remuxing.c
+0
-2
transcode_aac.c
doc/examples/transcode_aac.c
+0
-2
transcoding.c
doc/examples/transcoding.c
+0
-1
vaapi_encode.c
doc/examples/vaapi_encode.c
+0
-2
vaapi_transcode.c
doc/examples/vaapi_transcode.c
+0
-2
No files found.
doc/examples/avio_dir_cmd.c
View file @
10bcc41b
...
...
@@ -143,8 +143,6 @@ int main(int argc, char *argv[])
return
1
;
}
/* register codecs and formats and other lavf/lavc components*/
av_register_all
();
avformat_network_init
();
op
=
argv
[
1
];
...
...
doc/examples/avio_reading.c
View file @
10bcc41b
...
...
@@ -74,9 +74,6 @@ int main(int argc, char *argv[])
}
input_filename
=
argv
[
1
];
/* register codecs and formats and other lavf/lavc components*/
av_register_all
();
/* slurp file content into buffer */
ret
=
av_file_map
(
input_filename
,
&
buffer
,
&
buffer_size
,
0
,
NULL
);
if
(
ret
<
0
)
...
...
doc/examples/decode_audio.c
View file @
10bcc41b
...
...
@@ -94,9 +94,6 @@ int main(int argc, char **argv)
filename
=
argv
[
1
];
outfilename
=
argv
[
2
];
/* register all the codecs */
avcodec_register_all
();
pkt
=
av_packet_alloc
();
/* find the MPEG audio decoder */
...
...
doc/examples/decode_video.c
View file @
10bcc41b
...
...
@@ -101,8 +101,6 @@ int main(int argc, char **argv)
filename
=
argv
[
1
];
outfilename
=
argv
[
2
];
avcodec_register_all
();
pkt
=
av_packet_alloc
();
if
(
!
pkt
)
exit
(
1
);
...
...
doc/examples/demuxing_decoding.c
View file @
10bcc41b
...
...
@@ -252,9 +252,6 @@ int main (int argc, char **argv)
video_dst_filename
=
argv
[
2
];
audio_dst_filename
=
argv
[
3
];
/* register all formats and codecs */
av_register_all
();
/* open input file, and allocate format context */
if
(
avformat_open_input
(
&
fmt_ctx
,
src_filename
,
NULL
,
NULL
)
<
0
)
{
fprintf
(
stderr
,
"Could not open source file %s
\n
"
,
src_filename
);
...
...
doc/examples/encode_audio.c
View file @
10bcc41b
...
...
@@ -138,9 +138,6 @@ int main(int argc, char **argv)
}
filename
=
argv
[
1
];
/* register all the codecs */
avcodec_register_all
();
/* find the MP2 encoder */
codec
=
avcodec_find_encoder
(
AV_CODEC_ID_MP2
);
if
(
!
codec
)
{
...
...
doc/examples/encode_video.c
View file @
10bcc41b
...
...
@@ -84,8 +84,6 @@ int main(int argc, char **argv)
filename
=
argv
[
1
];
codec_name
=
argv
[
2
];
avcodec_register_all
();
/* find the mpeg1video encoder */
codec
=
avcodec_find_encoder_by_name
(
codec_name
);
if
(
!
codec
)
{
...
...
doc/examples/extract_mvs.c
View file @
10bcc41b
...
...
@@ -129,8 +129,6 @@ int main(int argc, char **argv)
}
src_filename
=
argv
[
1
];
av_register_all
();
if
(
avformat_open_input
(
&
fmt_ctx
,
src_filename
,
NULL
,
NULL
)
<
0
)
{
fprintf
(
stderr
,
"Could not open source file %s
\n
"
,
src_filename
);
exit
(
1
);
...
...
doc/examples/filtering_audio.c
View file @
10bcc41b
...
...
@@ -228,7 +228,6 @@ int main(int argc, char **argv)
exit
(
1
);
}
av_register_all
();
avfilter_register_all
();
if
((
ret
=
open_input_file
(
argv
[
1
]))
<
0
)
...
...
doc/examples/filtering_video.c
View file @
10bcc41b
...
...
@@ -222,7 +222,6 @@ int main(int argc, char **argv)
exit
(
1
);
}
av_register_all
();
avfilter_register_all
();
if
((
ret
=
open_input_file
(
argv
[
1
]))
<
0
)
...
...
doc/examples/http_multiclient.c
View file @
10bcc41b
...
...
@@ -114,7 +114,6 @@ int main(int argc, char **argv)
in_uri
=
argv
[
1
];
out_uri
=
argv
[
2
];
av_register_all
();
avformat_network_init
();
if
((
ret
=
av_dict_set
(
&
options
,
"listen"
,
"2"
,
0
))
<
0
)
{
...
...
doc/examples/hw_decode.c
View file @
10bcc41b
...
...
@@ -163,8 +163,6 @@ int main(int argc, char *argv[])
return
-
1
;
}
av_register_all
();
type
=
av_hwdevice_find_type_by_name
(
argv
[
1
]);
if
(
type
==
AV_HWDEVICE_TYPE_NONE
)
{
fprintf
(
stderr
,
"Device type %s is not supported.
\n
"
,
argv
[
1
]);
...
...
doc/examples/metadata.c
View file @
10bcc41b
...
...
@@ -44,7 +44,6 @@ int main (int argc, char **argv)
return
1
;
}
av_register_all
();
if
((
ret
=
avformat_open_input
(
&
fmt_ctx
,
argv
[
1
],
NULL
,
NULL
)))
return
ret
;
...
...
doc/examples/muxing.c
View file @
10bcc41b
...
...
@@ -564,9 +564,6 @@ int main(int argc, char **argv)
AVDictionary
*
opt
=
NULL
;
int
i
;
/* Initialize libavcodec, and register all codecs and formats. */
av_register_all
();
if
(
argc
<
2
)
{
printf
(
"usage: %s output_file
\n
"
"API example program to output a media file with libavformat.
\n
"
...
...
doc/examples/qsvdec.c
View file @
10bcc41b
...
...
@@ -150,8 +150,6 @@ int main(int argc, char **argv)
int
ret
,
i
;
av_register_all
();
if
(
argc
<
3
)
{
fprintf
(
stderr
,
"Usage: %s <input file> <output file>
\n
"
,
argv
[
0
]);
return
1
;
...
...
doc/examples/remuxing.c
View file @
10bcc41b
...
...
@@ -65,8 +65,6 @@ int main(int argc, char **argv)
in_filename
=
argv
[
1
];
out_filename
=
argv
[
2
];
av_register_all
();
if
((
ret
=
avformat_open_input
(
&
ifmt_ctx
,
in_filename
,
0
,
0
))
<
0
)
{
fprintf
(
stderr
,
"Could not open input file '%s'"
,
in_filename
);
goto
end
;
...
...
doc/examples/transcode_aac.c
View file @
10bcc41b
...
...
@@ -753,8 +753,6 @@ int main(int argc, char **argv)
exit
(
1
);
}
/* Register all codecs and formats so that they can be used. */
av_register_all
();
/* Open the input file for reading. */
if
(
open_input_file
(
argv
[
1
],
&
input_format_context
,
&
input_codec_context
))
...
...
doc/examples/transcoding.c
View file @
10bcc41b
...
...
@@ -517,7 +517,6 @@ int main(int argc, char **argv)
return
1
;
}
av_register_all
();
avfilter_register_all
();
if
((
ret
=
open_input_file
(
argv
[
1
]))
<
0
)
...
...
doc/examples/vaapi_encode.c
View file @
10bcc41b
...
...
@@ -125,8 +125,6 @@ int main(int argc, char *argv[])
goto
close
;
}
avcodec_register_all
();
err
=
av_hwdevice_ctx_create
(
&
hw_device_ctx
,
AV_HWDEVICE_TYPE_VAAPI
,
NULL
,
NULL
,
0
);
if
(
err
<
0
)
{
...
...
doc/examples/vaapi_transcode.c
View file @
10bcc41b
...
...
@@ -238,8 +238,6 @@ int main(int argc, char **argv)
return
-
1
;
}
av_register_all
();
ret
=
av_hwdevice_ctx_create
(
&
hw_device_ctx
,
AV_HWDEVICE_TYPE_VAAPI
,
NULL
,
NULL
,
0
);
if
(
ret
<
0
)
{
fprintf
(
stderr
,
"Failed to create a VAAPI device. Error code: %s
\n
"
,
av_err2str
(
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