Commit 2e3caed2 authored by Henrik Gramner's avatar Henrik Gramner Committed by Anton Mitrofanov

lavf: Update to the new API for iterating demuxers

parent cde9a933
Pipeline #19747 passed with stages
in 9 minutes and 28 seconds
......@@ -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
}
......
......@@ -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
......
......@@ -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:";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment