diff internal.h @ 6024:ee42a04b24f2 libavformat

Add a libavformat internal function ff_write_chained
author mstorsjo
date Fri, 21 May 2010 07:07:57 +0000
parents b740f4918397
children c7b98381ec2d
line wrap: on
line diff
--- a/internal.h	Thu May 20 18:34:44 2010 +0000
+++ b/internal.h	Fri May 21 07:07:57 2010 +0000
@@ -154,4 +154,18 @@
 void ff_sdp_write_media(char *buff, int size, AVCodecContext *c,
                         const char *dest_addr, int port, int ttl);
 
+/**
+ * Write a packet to another muxer than the one the user originally
+ * intended. Useful when chaining muxers, where one muxer internally
+ * writes a received packet to another muxer.
+ *
+ * @param dst the muxer to write the packet to
+ * @param dst_stream the stream index within dst to write the packet to
+ * @param pkt the packet to be written
+ * @param src the muxer the packet originally was intended for
+ * @return the value av_write_frame returned
+ */
+int ff_write_chained(AVFormatContext *dst, int dst_stream, AVPacket *pkt,
+                     AVFormatContext *src);
+
 #endif /* AVFORMAT_INTERNAL_H */