Deprecated List

Global attribute_deprecated
Use AVPacket to send palette changes instead. This is totally broken.

Global av_close_input_file (AVFormatContext *s)
use avformat_close_input() Close a media file (but not its codecs).

Global av_close_input_stream (AVFormatContext *s)
use av_close_input_file()

Global av_destruct_packet_nofree (AVPacket *pkt)
use NULL instead

Global av_fifo_peek (AVFifoBuffer *f, int offs)
Use av_fifo_peek2() instead.

Global av_find_opt (void *obj, const char *name, const char *unit, int mask, int flags)
use av_opt_find.

Global av_find_stream_info (AVFormatContext *ic)
use avformat_find_stream_info.

Global av_get_bits_per_sample_fmt (enum AVSampleFormat sample_fmt)
Use av_get_bytes_per_sample() instead.

Global av_get_bits_per_sample_format (enum AVSampleFormat sample_fmt)
Use av_get_bytes_per_sample() instead.

Global av_get_pict_type_char (int pict_type)
Use av_get_picture_type_char() instead.

Global av_open_input_file (AVFormatContext **ic_ptr, const char *filename, AVInputFormat *fmt, int buf_size, AVFormatParameters *ap)
use avformat_open_input instead.

Global av_open_input_stream (AVFormatContext **ic_ptr, AVIOContext *pb, const char *filename, AVInputFormat *fmt, AVFormatParameters *ap)
use avformat_open_input instead.

Global av_parser_change (AVCodecParserContext *s, AVCodecContext *avctx, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe)
use AVBitstreamFilter

Global av_set_parameters (AVFormatContext *s, AVFormatParameters *ap)
pass the options to avformat_write_header directly.

Global av_set_pts_info (AVStream *s, int pts_wrap_bits, unsigned int pts_num, unsigned int pts_den)
this function is not supposed to be called outside of lavf

Global av_set_string3 (void *obj, const char *name, const char *val, int alloc, const AVOption **o_out)
use av_opt_set()

Global av_write_header (AVFormatContext *s)
use avformat_write_header.

Global avcodec_alloc_context (void)
use avcodec_alloc_context3()

Global avcodec_channel_layout_num_channels (int64_t channel_layout)
Use av_get_channel_layout_nb_channels() instead.

Global avcodec_decode_audio3 (AVCodecContext *avctx, int16_t *samples, int *frame_size_ptr, AVPacket *avpkt)
Use avcodec_decode_audio4 instead.

Global avcodec_encode_audio (AVCodecContext *avctx, uint8_t *buf, int buf_size, const short *samples)
Use avcodec_encode_audio2 instead.

Global avcodec_get_channel_layout (const char *name)
Use av_get_channel_layout() instead.

Global avcodec_get_channel_layout_string (char *buf, int buf_size, int nb_channels, int64_t channel_layout)
Use av_get_channel_layout_string() instead.

Global avcodec_get_context_defaults (AVCodecContext *s)
use avcodec_get_context_defaults3

Global avcodec_get_pix_fmt_name (enum PixelFormat pix_fmt)
Deprecated in favor of av_get_pix_fmt_name().

Global avcodec_get_sample_fmt (const char *name)
Use av_get_sample_fmt() instead.

Global avcodec_get_sample_fmt_name (int sample_fmt)
Use av_get_sample_fmt_name() instead.

Global avcodec_init (void)
this function is called automatically from avcodec_register() and avcodec_register_all(), there is no need to call it manually

Global avcodec_open (AVCodecContext *avctx, AVCodec *codec)
use avcodec_open2

Global avcodec_sample_fmt_string (char *buf, int buf_size, int sample_fmt)
Use av_get_sample_fmt_string() instead.

Global avcodec_thread_init (AVCodecContext *s, int thread_count)
Set s->thread_count before calling avcodec_open2() instead of calling this.

Global AVCodecContext::cqp
use 'cqp' libx264 private option

Global AVCodecContext::crf
use 'crf' libx264 private option

Global AVCodecContext::drc_scale
use AC3 decoder private option instead.

Global AVCodecContext::internal_buffer
this field was moved to an internal context

Global AVCodecContext::internal_buffer_count
this field was moved to an internal context

Global AVCodecContext::is_copy
this field has been moved to an internal context

Global AVCodecContext::reordered_opaque
in favor of pkt_pts
  • encoding: unused
  • decoding: Set by user.

Global AVCodecContext::request_channels
Deprecated in favor of request_channel_layout.

Global AVFormatContext::loop_input
, use the 'loop' img2 demuxer private option.

Global AVFormatContext::loop_output
use the 'loop' private option in the gif muxer.

Global AVFormatContext::timestamp
use 'creation_time' metadata tag instead

Global AVFrame::age
unused

Global AVFrame::reordered_opaque
in favor of pkt_pts
  • encoding: unused
  • decoding: Read by user.

Global avio_set_interrupt_cb (int(*interrupt_cb)(void))
Use interrupt_callback in AVFormatContext/avio_open2 instead.

Global find_info_tag (char *arg, int arg_size, const char *tag1, const char *info)
use av_find_info_tag in libavutil instead.

Group FLAC options
Use FLAC encoder private options instead.

Global get_strz (AVIOContext *s, char *buf, int maxlen)
use avio_get_str instead

Global parse_date (const char *datestr, int duration)
in favor of av_parse_time()

Global sws_getContext (int srcW, int srcH, enum PixelFormat srcFormat, int dstW, int dstH, enum PixelFormat dstFormat, int flags, SwsFilter *srcFilter, SwsFilter *dstFilter, const double *param)
Use sws_getCachedContext() instead.

Global url_exist (const char *url)
Use avio_check instead.

Global url_feof (AVIOContext *s)
use AVIOContext.eof_reached

Global url_fget_max_packet_size (AVIOContext *s)
use AVIOContext.max_packet_size directly.

Global url_is_streamed (AVIOContext *s)
Use AVIOContext.seekable field directly.

Global URLContext
This struct will be made private

Global URLProtocol
This struct is to be made private.