mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-08 16:54:03 +02:00
Replace generic CONFIG_MUXERS preprocessor condition around format-specific
functions by more appropriate format-specific preprocessor conditions. Originally committed as revision 14781 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
bcb5430abe
commit
964454263c
@ -27,8 +27,8 @@
|
|||||||
#include "avformat.h"
|
#include "avformat.h"
|
||||||
#include "raw.h"
|
#include "raw.h"
|
||||||
|
|
||||||
#ifdef CONFIG_MUXERS
|
|
||||||
/* simple formats */
|
/* simple formats */
|
||||||
|
#ifdef CONFIG_FLAC_MUXER
|
||||||
static int flac_write_header(struct AVFormatContext *s)
|
static int flac_write_header(struct AVFormatContext *s)
|
||||||
{
|
{
|
||||||
static const uint8_t header[8] = {
|
static const uint8_t header[8] = {
|
||||||
@ -42,8 +42,9 @@ static int flac_write_header(struct AVFormatContext *s)
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_ROQ_MUXER
|
||||||
static int roq_write_header(struct AVFormatContext *s)
|
static int roq_write_header(struct AVFormatContext *s)
|
||||||
{
|
{
|
||||||
static const uint8_t header[] = {
|
static const uint8_t header[] = {
|
||||||
@ -55,12 +56,16 @@ static int roq_write_header(struct AVFormatContext *s)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_NULL_MUXER
|
||||||
static int null_write_packet(struct AVFormatContext *s, AVPacket *pkt)
|
static int null_write_packet(struct AVFormatContext *s, AVPacket *pkt)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_MUXERS
|
||||||
static int raw_write_packet(struct AVFormatContext *s, AVPacket *pkt)
|
static int raw_write_packet(struct AVFormatContext *s, AVPacket *pkt)
|
||||||
{
|
{
|
||||||
put_buffer(s->pb, pkt->data, pkt->size);
|
put_buffer(s->pb, pkt->data, pkt->size);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user