[SCM] libav/experimental: lavf: move internal functions from avformat.h to internal.h

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:23:17 UTC 2013


The following commit has been merged in the experimental branch:
commit 19711af5cdc364f9e02ea8103dd6e1e09dc288a4
Author: Anton Khirnov <anton at khirnov.net>
Date:   Sun Feb 6 15:38:55 2011 +0100

    lavf: move internal functions from avformat.h to internal.h
    
    Signed-off-by: Ronald S. Bultje <rsbultje at gmail.com>

diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index fd0cdba..675c13c 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -1249,22 +1249,6 @@ AVStream *av_new_stream(AVFormatContext *s, int id);
 AVProgram *av_new_program(AVFormatContext *s, int id);
 
 /**
- * Add a new chapter.
- * This function is NOT part of the public API
- * and should ONLY be used by demuxers.
- *
- * @param s media file handle
- * @param id unique ID for this chapter
- * @param start chapter start time in time_base units
- * @param end chapter end time in time_base units
- * @param title chapter title
- *
- * @return AVChapter or NULL on error
- */
-AVChapter *ff_new_chapter(AVFormatContext *s, int id, AVRational time_base,
-                          int64_t start, int64_t end, const char *title);
-
-/**
  * Set the pts for a given stream. If the new values would be invalid
  * (<= 0), it leaves the AVStream unchanged.
  *
@@ -1295,15 +1279,6 @@ int av_find_default_stream_index(AVFormatContext *s);
 int av_index_search_timestamp(AVStream *st, int64_t timestamp, int flags);
 
 /**
- * Ensure the index uses less memory than the maximum specified in
- * AVFormatContext.max_index_size by discarding entries if it grows
- * too large.
- * This function is not part of the public API and should only be called
- * by demuxers.
- */
-void ff_reduce_index(AVFormatContext *s, int stream_index);
-
-/**
  * Add an index entry into a sorted list. Update the entry if the list
  * already contains it.
  *
diff --git a/libavformat/ffmetadec.c b/libavformat/ffmetadec.c
index ab35746..cfeed73 100644
--- a/libavformat/ffmetadec.c
+++ b/libavformat/ffmetadec.c
@@ -21,6 +21,7 @@
 
 #include "avformat.h"
 #include "ffmeta.h"
+#include "internal.h"
 
 static int probe(AVProbeData *p)
 {
diff --git a/libavformat/internal.h b/libavformat/internal.h
index e53da7d..9e3302f 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -240,4 +240,25 @@ int ff_add_index_entry(AVIndexEntry **index_entries,
                        unsigned int *index_entries_allocated_size,
                        int64_t pos, int64_t timestamp, int size, int distance, int flags);
 
+/**
+ * Add a new chapter.
+ *
+ * @param s media file handle
+ * @param id unique ID for this chapter
+ * @param start chapter start time in time_base units
+ * @param end chapter end time in time_base units
+ * @param title chapter title
+ *
+ * @return AVChapter or NULL on error
+ */
+AVChapter *ff_new_chapter(AVFormatContext *s, int id, AVRational time_base,
+                          int64_t start, int64_t end, const char *title);
+
+/**
+ * Ensure the index uses less memory than the maximum specified in
+ * AVFormatContext.max_index_size by discarding entries if it grows
+ * too large.
+ */
+void ff_reduce_index(AVFormatContext *s, int stream_index);
+
 #endif /* AVFORMAT_INTERNAL_H */
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index 135482b..2df7a15 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -20,6 +20,7 @@
  */
 
 #include "avformat.h"
+#include "internal.h"
 #include "mpeg.h"
 
 //#define DEBUG_SEEK
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c
index b915fff..830f0bc 100644
--- a/libavformat/oggparsevorbis.c
+++ b/libavformat/oggparsevorbis.c
@@ -28,6 +28,7 @@
 #include "libavcodec/get_bits.h"
 #include "libavcodec/bytestream.h"
 #include "avformat.h"
+#include "internal.h"
 #include "oggdec.h"
 #include "vorbiscomment.h"
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list