Mercurial > libavformat.hg
changeset 3728:83ddeeaae767 libavformat
Replace generic CONFIG_MUXERS preprocessor condition around format-specific
functions by more appropriate format-specific preprocessor conditions.
author | diego |
---|---|
date | Fri, 15 Aug 2008 16:54:27 +0000 |
parents | 9a307cfd59a3 |
children | ed875181c3fa |
files | raw.c |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/raw.c Fri Aug 15 16:48:05 2008 +0000 +++ b/raw.c Fri Aug 15 16:54:27 2008 +0000 @@ -27,8 +27,8 @@ #include "avformat.h" #include "raw.h" -#ifdef CONFIG_MUXERS /* simple formats */ +#ifdef CONFIG_FLAC_MUXER static int flac_write_header(struct AVFormatContext *s) { static const uint8_t header[8] = { @@ -42,8 +42,9 @@ } return 0; } +#endif - +#ifdef CONFIG_ROQ_MUXER static int roq_write_header(struct AVFormatContext *s) { static const uint8_t header[] = { @@ -55,12 +56,16 @@ return 0; } +#endif +#ifdef CONFIG_NULL_MUXER static int null_write_packet(struct AVFormatContext *s, AVPacket *pkt) { return 0; } +#endif +#ifdef CONFIG_MUXERS static int raw_write_packet(struct AVFormatContext *s, AVPacket *pkt) { put_buffer(s->pb, pkt->data, pkt->size);