Commit 96577475 authored by Jason Martens's avatar Jason Martens Committed by Fiona Glaser

Fix use of deprecated av_close_input_file call

parent 02217bd2
......@@ -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
......
......@@ -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;
}
......
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