Mercurial > libavformat.hg
changeset 1546:41356096b2d0 libavformat
Fix compile with --disable-muxers, patch by Lo«Ác Le Loarer, lll+ffmpeg m4x org.
author | diego |
---|---|
date | Thu, 30 Nov 2006 01:00:12 +0000 |
parents | 8811d543732e |
children | e48e3a714f24 |
files | aviobuf.c |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/aviobuf.c Wed Nov 29 05:42:59 2006 +0000 +++ b/aviobuf.c Thu Nov 30 01:00:12 2006 +0000 @@ -136,12 +136,12 @@ fill_buffer(s); s->buf_ptr = s->buf_end + offset - s->pos; } else { -#ifdef CONFIG_MUXERS +#if defined(CONFIG_MUXERS) || defined(CONFIG_NETWORK) if (s->write_flag) { flush_buffer(s); s->must_flush = 1; } else -#endif //CONFIG_MUXERS +#endif /* defined(CONFIG_MUXERS) || defined(CONFIG_NETWORK) */ { s->buf_end = s->buffer; } @@ -622,7 +622,9 @@ return s->max_packet_size; } -#ifdef CONFIG_MUXERS +/* url_open_dyn_buf and url_close_dyn_buf are used in rtp.c to send a response + * back to the server even if CONFIG_MUXERS is not set. */ +#if defined(CONFIG_MUXERS) || defined(CONFIG_NETWORK) /* buffer handling */ int url_open_buf(ByteIOContext *s, uint8_t *buf, int buf_size, int flags) { @@ -785,4 +787,4 @@ av_free(d); return size; } -#endif //CONFIG_MUXERS +#endif /* CONFIG_MUXERS || CONFIG_NETWORK */