declare ff_interleave_add_packet
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sat, 7 Feb 2009 21:13:40 +0000 (21:13 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sat, 7 Feb 2009 21:13:40 +0000 (21:13 +0000)
Originally committed as revision 17032 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/avformat.h

index be1ec1c..77745ba 100644 (file)
@@ -1080,6 +1080,16 @@ int av_interleave_packet_per_dts(AVFormatContext *s, AVPacket *out,
                                  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.
  *