From 2f154ac1652000afe16140cb12c35d777f0c60c8 Mon Sep 17 00:00:00 2001 From: Jason Martens Date: Thu, 13 Sep 2012 11:20:40 -0700 Subject: [PATCH] Fix use of deprecated av_close_input_file call --- configure | 2 +- input/lavf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.47.3