From c4bbc87f2f277dabe2bb98b7db1b4bc2a2bf13b6 Mon Sep 17 00:00:00 2001 From: k-m_schindler Date: Fri, 17 May 2013 21:48:55 +0000 Subject: one more fix on avformat. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2995 b956fd51-792f-4845-bead-9b4dfca2ff2c --- src/lib/ffmpeg-0.9/avformat.pas | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/lib/ffmpeg-0.9') diff --git a/src/lib/ffmpeg-0.9/avformat.pas b/src/lib/ffmpeg-0.9/avformat.pas index c4ca59b4..d8f7a3c0 100644 --- a/src/lib/ffmpeg-0.9/avformat.pas +++ b/src/lib/ffmpeg-0.9/avformat.pas @@ -1698,16 +1698,30 @@ function av_read_pause(s: PAVFormatContext): cint; procedure av_close_input_stream(s: PAVFormatContext); cdecl; external av__format; +{$IFDEF FF_API_CLOSE_INPUT_FILE} (** + * @deprecated use avformat_close_input() * Close a media file (but not its codecs). * * @param s media file handle *) procedure av_close_input_file(s: PAVFormatContext); + cdecl; external av__format; deprecated; +{$ENDIF} + +(** + * Close an opened input AVFormatContext. Free it and all its contents + * and set *s to NULL. + *) +procedure avformat_close_input(s: PPAVFormatContext); cdecl; external av__format; + (** - * @} + * Free an AVFormatContext and all its streams. + * @param s context to free *) +procedure avformat_free_context(s: PAVFormatContext); + cdecl; external av__format; {$IFDEF FF_API_NEW_STREAM} (** -- cgit v1.2.3