32#include <libavcodec/avcodec.h>
33#include <libavformat/avformat.h>
34#include <libavutil/avutil.h>
36#ifndef AVCODEC_MAX_AUDIO_FRAME_SIZE
37#define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000
40#if LIBAVUTIL_VERSION_INT < AV_VERSION_INT(50, 0, 0)
41#define AVMEDIA_TYPE_AUDIO CODEC_TYPE_AUDIO
44#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(53, 2, 0)
45static inline int avformat_open_input(AVFormatContext **ps,
const char *
filename,
void *
fmt,
void **options)
51#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(53, 5, 0)
52static inline AVCodecContext *
55 return avcodec_alloc_context();
58static inline AVStream *
59avformat_new_stream(AVFormatContext *
s, AVCodec *
c) {
60 return av_new_stream(
s,0);
64avcodec_get_context_defaults3(AVCodecContext *
s, AVCodec *codec)
66 avcodec_get_context_defaults(
s);
72#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(53, 5, 6)
74avcodec_open2(AVCodecContext *avctx, AVCodec *codec,
void **options
__attribute__((unused)))
76 return avcodec_open(avctx, codec);
80#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(53, 5, 0)
82avformat_find_stream_info(AVFormatContext *
ic,
void **options)
84 return av_find_stream_info(
ic);
88avformat_close_input(AVFormatContext **
s)
90 av_close_input_file(*
s);
__attribute__((naked, target("arm")))
Definition asm-nseel-arm-gcc.c:66
unsigned s
Definition inflate.c:1555
static char filename[]
Definition features.c:5
return c
Definition crypt.c:175
fmt[0]
Definition fileio.c:2503
int ic
Definition match.c:170