# HG changeset patch # User reimar # Date 1168104491 0 # Node ID fc4ce8a91a2e12479578915377da0d65512b4880 # Parent 2a0a1f974172a98e336a0eaae3ca0410f878d3c8 Include "internal" libavformat/riff.h also when dynamic libavformat is used instead of duplicating typedefs and function prototypes in already three different places. diff -r 2a0a1f974172 -r fc4ce8a91a2e libmpcodecs/ae_lavc.c --- a/libmpcodecs/ae_lavc.c Sat Jan 06 15:08:04 2007 +0000 +++ b/libmpcodecs/ae_lavc.c Sat Jan 06 17:28:11 2007 +0000 @@ -31,17 +31,10 @@ #if defined(USE_LIBAVFORMAT) || defined(USE_LIBAVFORMAT_SO) #ifdef USE_LIBAVFORMAT_SO #include -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" +#endif #include "libavformat/riff.h" -#endif extern const CodecTag mp_wav_tags[]; #endif diff -r 2a0a1f974172 -r fc4ce8a91a2e libmpdemux/demux_lavf.c --- a/libmpdemux/demux_lavf.c Sat Jan 06 15:08:04 2007 +0000 +++ b/libmpdemux/demux_lavf.c Sat Jan 06 17:28:11 2007 +0000 @@ -33,17 +33,12 @@ #ifdef USE_LIBAVFORMAT_SO #include #include -typedef struct CodecTag { - int id; - unsigned int tag; - unsigned int invalid_asf : 1; -} CodecTag; #else #include "avformat.h" -#include "riff.h" #include "avi.h" #include "opt.h" #endif +#include "riff.h" #define PROBE_BUF_SIZE 2048 diff -r 2a0a1f974172 -r fc4ce8a91a2e libmpdemux/muxer_lavf.c --- a/libmpdemux/muxer_lavf.c Sat Jan 06 15:08:04 2007 +0000 +++ b/libmpdemux/muxer_lavf.c Sat Jan 06 17:28:11 2007 +0000 @@ -19,19 +19,10 @@ #include "m_option.h" #ifdef USE_LIBAVFORMAT_SO #include -typedef struct CodecTag { - int id; - unsigned int tag; - unsigned int invalid_asf : 1; -} CodecTag; -unsigned int codec_get_wav_tag(int id); -enum CodecID codec_get_bmp_id(unsigned int tag); -enum CodecID codec_get_wav_id(unsigned int tag); -enum CodecID codec_get_id(const CodecTag *tags, unsigned int tag); #else #include "avformat.h" +#endif #include "libavformat/riff.h" -#endif extern const CodecTag mp_wav_tags[];