changeset 4418:d5119d75439d libavformat

Move declaration of ff_interleave_add_packet to internal.h. It is an internal function and should not be in an installed header.
author bcoudurier
date Sun, 08 Feb 2009 21:14:46 +0000
parents de5ccc7a4461
children 24d2dfc9086d
files audiointerleave.c avformat.h internal.h oggenc.c
diffstat 4 files changed, 12 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/audiointerleave.c	Sun Feb 08 21:09:50 2009 +0000
+++ b/audiointerleave.c	Sun Feb 08 21:14:46 2009 +0000
@@ -23,6 +23,7 @@
 #include "libavutil/fifo.h"
 #include "avformat.h"
 #include "audiointerleave.h"
+#include "internal.h"
 
 void ff_audio_interleave_close(AVFormatContext *s)
 {
--- a/avformat.h	Sun Feb 08 21:09:50 2009 +0000
+++ b/avformat.h	Sun Feb 08 21:14:46 2009 +0000
@@ -1116,16 +1116,6 @@
                                  AVPacket *pkt, int flush);
 
 /**
- * Add packet to AVFormatContext->packet_buffer list, determining its
- * interleaved position using compare() function argument.
- *
- * This function is not part of the public API and should only be called
- * by muxers using their own interleave function.
- */
-void ff_interleave_add_packet(AVFormatContext *s, AVPacket *pkt,
-                              int (*compare)(AVFormatContext *, AVPacket *, AVPacket *));
-
-/**
  * @brief Write the stream trailer to an output media file and
  *        free the file private data.
  *
--- a/internal.h	Sun Feb 08 21:09:50 2009 +0000
+++ b/internal.h	Sun Feb 08 21:14:46 2009 +0000
@@ -29,4 +29,14 @@
 void av_set_program_name(AVProgram *program, char *provider_name, char *name);
 void av_program_add_stream_index(AVFormatContext *ac, int progid, unsigned int idx);
 
+/**
+ * Add packet to AVFormatContext->packet_buffer list, determining its
+ * interleaved position using compare() function argument.
+ *
+ * This function is not part of the public API and should only be called
+ * by muxers using their own interleave function.
+ */
+void ff_interleave_add_packet(AVFormatContext *s, AVPacket *pkt,
+                              int (*compare)(AVFormatContext *, AVPacket *, AVPacket *));
+
 #endif /* AVFORMAT_INTERNAL_H */
--- a/oggenc.c	Sun Feb 08 21:09:50 2009 +0000
+++ b/oggenc.c	Sun Feb 08 21:14:46 2009 +0000
@@ -23,6 +23,7 @@
 #include "libavcodec/xiph.h"
 #include "libavcodec/bytestream.h"
 #include "avformat.h"
+#include "internal.h"
 
 typedef struct {
     int64_t duration;