Deprecated List

Global attribute_deprecated

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

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

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).

use avformat_close_input() Close a media file (but not its codecs).

Global av_close_input_stream (AVFormatContext *s)

use av_close_input_file()

use av_close_input_file()

Global av_destruct_packet_nofree (AVPacket *pkt)

use NULL instead

use NULL instead

Global av_eval_expr (AVExpr *e, const double *const_values, void *opaque)

Deprecated in favor of av_expr_eval().

Deprecated in favor of av_expr_eval().

Global av_fifo_peek (AVFifoBuffer *f, int offs)

Use av_fifo_peek2() instead.

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.

use av_opt_find.

Global av_find_stream_info (AVFormatContext *ic)

use avformat_find_stream_info.

use avformat_find_stream_info.

Global av_free_expr (AVExpr *e)

Deprecated in favor of av_expr_free().

Deprecated in favor of av_expr_free().

Global av_get_bits_per_sample_fmt (enum AVSampleFormat sample_fmt)

Use av_get_bytes_per_sample() instead.

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.

Use av_get_bytes_per_sample() instead.

Global av_get_pict_type_char (int pict_type)

Use av_get_picture_type_char() instead.

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.

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.

use avformat_open_input instead.

Global av_parse_and_eval_expr (double *res, const char *s, const char *const *const_names, const double *const_values, const char *const *func1_names, double(*const *funcs1)(void *, double), const char *const *func2_names, double(*const *funcs2)(void *, double, double), void *opaque, int log_offset, void *log_ctx)

Deprecated in favor of av_expr_parse_and_eval().

Deprecated in favor of av_expr_parse_and_eval().

Global av_parse_expr (AVExpr **expr, const char *s, const char *const *const_names, const char *const *func1_names, double(*const *funcs1)(void *, double), const char *const *func2_names, double(*const *funcs2)(void *, double, double), int log_offset, void *log_ctx)

Deprecated in favor of av_expr_parse().

Deprecated in favor of av_expr_parse().

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.

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

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()

use av_opt_set()

Global av_vsink_buffer_get_video_buffer_ref (AVFilterContext *ctx, AVFilterBufferRef **picref, int flags)

Use av_buffersink_get_buffer_ref() instead.

Use av_buffersink_get_buffer_ref() instead.

Global av_write_header (AVFormatContext *s)

use avformat_write_header.

use avformat_write_header.

Global avcodec_alloc_context (void)

use avcodec_alloc_context3()

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.

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.

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

use avcodec_get_context_defaults3

Global avcodec_get_pix_fmt_name (enum PixelFormat pix_fmt)

Deprecated in favor of av_get_pix_fmt_name().

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

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

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.

Set s->thread_count before calling avcodec_open2() instead of calling this.

Global AVCodecContext::cqp

use 'cqp' libx264 private option

use 'cqp' libx264 private option

use 'cqp' libx264 private option

Global AVCodecContext::crf

use 'crf' libx264 private option

use 'crf' libx264 private option

use 'crf' libx264 private option

Global AVCodecContext::drc_scale

use AC3 decoder private option instead.

use AC3 decoder private option instead.

use AC3 decoder private option instead.

Global AVCodecContext::internal_buffer

this field was moved to an internal context

this field was moved to an internal context

this field was moved to an internal context

Global AVCodecContext::internal_buffer_count

this field was moved to an internal context

this field was moved to an internal context

this field was moved to an internal context

Global AVCodecContext::is_copy

this field has been moved to an internal context

this field has been moved to an internal context

this field has been moved to an internal context

Global AVCodecContext::reordered_opaque

in favor of pkt_pts

  • encoding: unused
  • decoding: Set by user.

in favor of pkt_pts

  • encoding: unused
  • decoding: Set by user.

in favor of pkt_pts

  • encoding: unused
  • decoding: Set by user.

Global AVCodecContext::request_channels

Deprecated in favor of request_channel_layout.

Deprecated in favor of request_channel_layout.

Deprecated in favor of request_channel_layout.

Global avfilter_all_formats (enum AVMediaType type)
Use avfilter_make_all_formats() instead.

Global avformat_alloc_output_context (const char *format, AVOutputFormat *oformat, const char *filename)

deprecated in favor of avformat_alloc_output_context2()

deprecated in favor of avformat_alloc_output_context2()

Global AVFormatContext::loop_input

, use the 'loop' img2 demuxer private option.

, use the 'loop' img2 demuxer private option.

, use the 'loop' img2 demuxer private option.

Global AVFormatContext::loop_output

use the 'loop' private option in the gif muxer.

use the 'loop' private option in the gif muxer.

use the 'loop' private option in the gif muxer.

Global AVFormatContext::timestamp

use 'creation_time' metadata tag instead

use 'creation_time' metadata tag instead

use 'creation_time' metadata tag instead

Global AVFrame::age

unused

unused

unused

Global AVFrame::reordered_opaque

in favor of pkt_pts

  • encoding: unused
  • decoding: Read by user.

in favor of pkt_pts

  • encoding: unused
  • decoding: Read by user.

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.

Use interrupt_callback in AVFormatContext/avio_open2 instead.

File dict.h
AVDictionary is provided for compatibility with libav. It is both in implementation as well as API inefficient. It does not scale and is extremely slow with large dictionaries. It is recommended that new code uses our tree container from tree.c/h where applicable, which uses AVL trees to achieve O(log n) performance.

File dict.h
AVDictionary is provided for compatibility with libav. It is both in implementation as well as API inefficient. It does not scale and is extremely slow with large dictionaries. It is recommended that new code uses our tree container from tree.c/h where applicable, which uses AVL trees to achieve O(log n) performance.

Global dump_format (AVFormatContext *ic, int index, const char *url, int is_output)

Deprecated in favor of av_dump_format().

Deprecated in favor of av_dump_format().

Global find_info_tag (char *arg, int arg_size, const char *tag1, const char *info)

use av_find_info_tag in libavutil instead.

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

use avio_get_str instead

Global parse_date (const char *datestr, int duration)

in favor of av_parse_time()

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 *filename)

Use avio_check instead.

Use avio_check instead.

Global url_fget_max_packet_size (AVIOContext *s)

use AVIOContext.max_packet_size directly.

use AVIOContext.max_packet_size directly.

Global url_is_streamed (AVIOContext *s)

Use AVIOContext.seekable field directly.

Use AVIOContext.seekable field directly.

Global URLContext

This struct will be made private

This struct will be made private

This struct will be made private

Global URLProtocol

This struct is to be made private.

This struct is to be made private.

This struct is to be made private.