Mercurial > mplayer.hg
diff libmpdemux/demuxer.c @ 27282:16beae919ff1
Avoid including avcodec.h in demuxer.h (and thus many other files) just to get
FF_INPUT_BUFFER_PADDING_SIZE.
Instead use MP_INPUT_BUFFER_PADDING_SIZE and add a preprocessor check that it
is big enough.
author | reimar |
---|---|
date | Thu, 17 Jul 2008 17:14:12 +0000 |
parents | 3771c9d8daf6 |
children | e7c989f7a7c9 |
line wrap: on
line diff
--- a/libmpdemux/demuxer.c Thu Jul 17 17:11:30 2008 +0000 +++ b/libmpdemux/demuxer.c Thu Jul 17 17:14:12 2008 +0000 @@ -27,6 +27,13 @@ #include "libass/ass_mp.h" #endif +#ifdef USE_LIBAVCODEC +#include "libavcodec/avcodec.h" +#if MP_INPUT_BUFFER_PADDING_SIZE < FF_INPUT_BUFFER_PADDING_SIZE +#error MP_INPUT_BUFFER_PADDING_SIZE is too small! +#endif +#endif + extern void resync_video_stream(sh_video_t *sh_video); extern void resync_audio_stream(sh_audio_t *sh_audio);