[FFmpeg-cvslog] r14781 - trunk/libavformat/raw.c
diego
subversion
Fri Aug 15 18:54:27 CEST 2008
Author: diego
Date: Fri Aug 15 18:54:27 2008
New Revision: 14781
Log:
Surround format-specific functions by appropriate format-specific preprocessor
conditions instead of a generic CONFIG_MUXERS.
Modified:
trunk/libavformat/raw.c
Modified: trunk/libavformat/raw.c
==============================================================================
--- trunk/libavformat/raw.c (original)
+++ trunk/libavformat/raw.c Fri Aug 15 18:54:27 2008
@@ -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 @@ static int flac_write_header(struct AVFo
}
return 0;
}
+#endif
-
+#ifdef CONFIG_ROQ_MUXER
static int roq_write_header(struct AVFormatContext *s)
{
static const uint8_t header[] = {
@@ -55,12 +56,16 @@ static int roq_write_header(struct AVFor
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);
More information about the ffmpeg-cvslog
mailing list