[FFmpeg-devel] [RFC] missing close/free functions for avformat?

Baptiste Coudurier baptiste.coudurier
Mon Dec 17 23:47:06 CET 2007


Hi

Reimar D?ffinger wrote:
>
> [...]
>  
>  /**
> + * Free an AVFormatContext and all substructures allocated by libavformat.
> + */
> +void av_free_format_context(AVFormatContext *);
> +
> +/**
>   * Read packets of a media file to get stream information. This
>   * is useful for file formats with no headers such as MPEG. This
>   * function also computes the real frame rate in case of mpeg2 repeat
> @@ -653,8 +653,9 @@
>   * Close a media file (but not its codecs).
>   *
>   * @param s media file handle
> + * @deprecated Use av_free_format_context instead.
>   */
> -void av_close_input_file(AVFormatContext *s);
> +attribute_deprecated void av_close_input_file(AVFormatContext *s);
>  

If API has av_open_*, I'd like to keep av_close_*.

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A.                                    http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312




More information about the ffmpeg-devel mailing list