[x264-devel] [PATCH] input/lavf: Use avformat_close_input()

Derek Buitenhuis derek.buitenhuis at gmail.com
Tue Sep 11 20:57:55 CEST 2012


av_close_input_file has been deprecated since December 2011.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
---
 input/lavf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/input/lavf.c b/input/lavf.c
index b3b7fc6..8ca5fe7 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;
 }
-- 
1.7.9.5



More information about the x264-devel mailing list