From b2e213d88976f166b115fc6de6e3c4105d128576 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Fri, 19 Aug 2011 05:17:02 +0300 Subject: aviheader.h: avoid including demuxer.h Remove unnecessary demuxer.h include from aviheader.h. Through stheader.h aviheader.h is included in a lot of files. Add missing mp_msg.h includes to av_sub.c and sd_ass.c (previously hidden by indirect inclusion through demuxer.h and stream.h). --- libmpdemux/aviheader.h | 4 ++-- sub/av_sub.c | 1 + sub/sd_ass.c | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libmpdemux/aviheader.h b/libmpdemux/aviheader.h index 6740c249ce..6c86378a4a 100644 --- a/libmpdemux/aviheader.h +++ b/libmpdemux/aviheader.h @@ -24,7 +24,6 @@ #include "config.h" /* get correct definition of HAVE_BIGENDIAN */ #include "libavutil/common.h" #include "mpbswap.h" -#include "demuxer.h" #ifndef mmioFOURCC #define mmioFOURCC( ch0, ch1, ch2, ch3 ) \ @@ -375,6 +374,7 @@ typedef struct { #define AVI_IDX_OFFSET(x) ((((uint64_t)(x)->dwFlags&0xffff0000)<<16)+(x)->dwChunkOffset) -void read_avi_header(demuxer_t *demuxer, int index_mode); +struct demuxer; +void read_avi_header(struct demuxer *demuxer, int index_mode); #endif /* MPLAYER_AVIHEADER_H */ diff --git a/sub/av_sub.c b/sub/av_sub.c index 88f84db104..fdef2a57f5 100644 --- a/sub/av_sub.c +++ b/sub/av_sub.c @@ -18,6 +18,7 @@ #include +#include "mp_msg.h" #include "libmpdemux/stheader.h" #include "sub.h" #include "spudec.h" diff --git a/sub/sd_ass.c b/sub/sd_ass.c index d7556ca203..e386cb50d9 100644 --- a/sub/sd_ass.c +++ b/sub/sd_ass.c @@ -24,6 +24,7 @@ #include "talloc.h" #include "mpcommon.h" +#include "mp_msg.h" #include "libmpdemux/stheader.h" #include "sub.h" #include "ass_mp.h" -- cgit v1.2.3