From: Jason Martens Date: Thu, 13 Sep 2012 18:20:40 +0000 (-0700) Subject: Fix use of deprecated av_close_input_file call X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=2f154ac1652000afe16140cb12c35d777f0c60c8;p=x264.git Fix use of deprecated av_close_input_file call --- diff --git a/configure b/configure index dec3b939..250b0ace 100755 --- a/configure +++ b/configure @@ -835,7 +835,7 @@ if [ "$lavf" = "auto" ] ; then done fi LAVF_LIBS="-L. $LAVF_LIBS" - if cc_check libavformat/avformat.h "$LAVF_CFLAGS $LAVF_LIBS" "avformat_find_stream_info(0,0); avcodec_open2(0,0,0);" ; then + if cc_check libavformat/avformat.h "$LAVF_CFLAGS $LAVF_LIBS" "avformat_close_input(0);" ; then if [ "$swscale" = "yes" ]; then lavf="yes" else diff --git a/input/lavf.c b/input/lavf.c index b3b7fc6f..8ca5fe79 100644 --- a/input/lavf.c +++ b/input/lavf.c @@ -245,7 +245,7 @@ static int close_file( hnd_t handle ) { lavf_hnd_t *h = handle; avcodec_close( h->lavf->streams[h->stream_id]->codec ); - av_close_input_file( h->lavf ); + avformat_close_input( &h->lavf ); free( h ); return 0; }