[x264-devel] [Git][videolan/x264][master] lavf: Update to the new API for iterating demuxers
Anton Mitrofanov
gitlab at videolan.org
Thu Jul 2 19:19:44 CEST 2020
Anton Mitrofanov pushed to branch master at VideoLAN / x264
Commits:
2e3caed2 by Henrik Gramner at 2020-07-02T19:08:51+02:00
lavf: Update to the new API for iterating demuxers
- - - - -
3 changed files:
- autocomplete.c
- configure
- input/lavf.c
Changes:
=====================================
autocomplete.c
=====================================
@@ -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
=====================================
@@ -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
=====================================
@@ -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:";
View it on GitLab: https://code.videolan.org/videolan/x264/-/commit/2e3caed26d8eab1aee34f97a1f6d4590f357b17c
--
View it on GitLab: https://code.videolan.org/videolan/x264/-/commit/2e3caed26d8eab1aee34f97a1f6d4590f357b17c
You're receiving this email because of your account on code.videolan.org.
More information about the x264-devel
mailing list