Mercurial > mplayer.hg
diff libmpcodecs/ae_lavc.c @ 21820:cd705f30bb31
Include libavformat/riff.h when building with static libavformat and
add and correct prototypes if not.
author | reimar |
---|---|
date | Sat, 06 Jan 2007 14:40:05 +0000 |
parents | 03bc990498fc |
children | fc4ce8a91a2e |
line wrap: on
line diff
--- a/libmpcodecs/ae_lavc.c Sat Jan 06 13:38:30 2007 +0000 +++ b/libmpcodecs/ae_lavc.c Sat Jan 06 14:40:05 2007 +0000 @@ -29,8 +29,20 @@ extern int avcodec_inited; static int compressed_frame_size = 0; #if defined(USE_LIBAVFORMAT) || defined(USE_LIBAVFORMAT_SO) -extern unsigned int codec_get_wav_tag(int id); -extern const int mp_wav_tags[]; +#ifdef USE_LIBAVFORMAT_SO +#include <ffmpeg/avformat.h> +typedef struct CodecTag { + int id; + unsigned int tag; + unsigned int invalid_asf : 1; +} CodecTag; +unsigned int codec_get_wav_tag(int id); +unsigned int codec_get_tag(const CodecTag *tags, int id); +#else +#include "libavformat/avformat.h" +#include "libavformat/riff.h" +#endif +extern const CodecTag mp_wav_tags[]; #endif static int bind_lavc(audio_encoder_t *encoder, muxer_stream_t *mux_a)