[x264-devel] [PATCH] Fix use of deprecated av_close_input_file() call.

Steven Walters kemuri9 at gmail.com
Sat Mar 10 16:05:57 CET 2012


On Sat, Mar 10, 2012 at 12:48 AM, Jason Martens <cacepi at gmail.com> wrote:

> ---
>  input/lavf.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> 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.7.5 (Apple Git-26)
> _______________________________________________
> x264-devel mailing list
> x264-devel at videolan.org
> http://mailman.videolan.org/listinfo/x264-devel
>


configure needs to be updated to perform a check to see if lavf has the
avformat_close_input function, to avoid compilation failures if it doesn't.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20120310/eb0ad41b/attachment.html>


More information about the x264-devel mailing list