Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
x264
Commits
2e3caed2
Commit
2e3caed2
authored
Jun 10, 2020
by
Henrik Gramner
Committed by
Anton Mitrofanov
Jul 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf: Update to the new API for iterating demuxers
parent
cde9a933
Pipeline
#19747
passed with stages
in 9 minutes and 28 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
autocomplete.c
autocomplete.c
+2
-2
configure
configure
+1
-1
input/lavf.c
input/lavf.c
+0
-1
No files found.
autocomplete.c
View file @
2e3caed2
...
...
@@ -331,8 +331,8 @@ int x264_cli_autocomplete( const char *prev, const char *cur )
OPT
(
"--input-fmt"
)
{
#if HAVE_LAVF
av_register_all
()
;
for
(
const
AVInputFormat
*
f
=
NULL
;
(
f
=
av_
iformat_next
(
f
));
)
void
*
i
=
NULL
;
for
(
const
AVInputFormat
*
f
;
(
f
=
av_
demuxer_iterate
(
&
i
));
)
suggest_token
(
f
->
name
,
','
);
#endif
}
...
...
configure
View file @
2e3caed2
...
...
@@ -1154,7 +1154,7 @@ if [ "$lavf" = "auto" ] ; then
done
fi
if
cc_check libavformat/avformat.h
"
$LAVF_CFLAGS
$LAVF_LIBS
"
"av_
register_all(
);"
;
then
if
cc_check libavformat/avformat.h
"
$LAVF_CFLAGS
$LAVF_LIBS
"
"av_
demuxer_iterate(0
);"
;
then
if
cc_check libavcodec/avcodec.h
"
$LAVF_CFLAGS
$LAVF_LIBS
"
"avcodec_send_packet(0,0);"
;
then
lavf
=
"yes"
else
...
...
input/lavf.c
View file @
2e3caed2
...
...
@@ -168,7 +168,6 @@ static int open_file( char *psz_filename, hnd_t *p_handle, video_info_t *info, c
lavf_hnd_t
*
h
=
calloc
(
1
,
sizeof
(
lavf_hnd_t
)
);
if
(
!
h
)
return
-
1
;
av_register_all
();
if
(
!
strcmp
(
psz_filename
,
"-"
)
)
psz_filename
=
"pipe:"
;
...
...
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