diff --git a/libmpdemux/cache2.c b/libmpdemux/cache2.c index 8e935a6c06..4b6deb0cdc 100644 --- a/libmpdemux/cache2.c +++ b/libmpdemux/cache2.c @@ -14,6 +14,8 @@ #include #include #include +#include +#include #include "../linux/shmem.h" diff --git a/libmpdemux/stream.h b/libmpdemux/stream.h index 184444971b..f6734561cf 100644 --- a/libmpdemux/stream.h +++ b/libmpdemux/stream.h @@ -53,6 +53,8 @@ void stream_enable_cache(stream_t *stream,int size,int min,int prefill); int cache_stream_fill_buffer(stream_t *s); int cache_stream_seek_long(stream_t *s,off_t pos); +#include + inline static int stream_read_char(stream_t *s){ return (s->buf_posbuf_len)?s->buffer[s->buf_pos++]: (cache_stream_fill_buffer(s)?s->buffer[s->buf_pos++]:-256); diff --git a/libmpdemux/video.c b/libmpdemux/video.c index 09b7e1ae54..e1bce99b6c 100644 --- a/libmpdemux/video.c +++ b/libmpdemux/video.c @@ -7,6 +7,7 @@ #include #endif #include +#include #include #include "mp_msg.h"