]> git.sesse.net Git - x264/commitdiff
Fix use of deprecated av_close_input_file call
authorJason Martens <cacepi@gmail.com>
Thu, 13 Sep 2012 18:20:40 +0000 (11:20 -0700)
committerFiona Glaser <fiona@x264.com>
Wed, 26 Sep 2012 21:14:02 +0000 (14:14 -0700)
configure
input/lavf.c

index dec3b939b6b1f66b6a6246b6b4d6799eb3bdc44d..250b0ace70cb8760957c46220dac063942fea1d5 100755 (executable)
--- 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
index b3b7fc6f05d5697949bb77f0797e34977b588df5..8ca5fe797b83968a646e08c555858a95624c923b 100644 (file)
@@ -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;
 }