comparison 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
comparison
equal deleted inserted replaced
6023:d679feb6ead1 6024:ee42a04b24f2
152 * @param ttl the time to live of the stream, 0 if not multicast 152 * @param ttl the time to live of the stream, 0 if not multicast
153 */ 153 */
154 void ff_sdp_write_media(char *buff, int size, AVCodecContext *c, 154 void ff_sdp_write_media(char *buff, int size, AVCodecContext *c,
155 const char *dest_addr, int port, int ttl); 155 const char *dest_addr, int port, int ttl);
156 156
157 /**
158 * Write a packet to another muxer than the one the user originally
159 * intended. Useful when chaining muxers, where one muxer internally
160 * writes a received packet to another muxer.
161 *
162 * @param dst the muxer to write the packet to
163 * @param dst_stream the stream index within dst to write the packet to
164 * @param pkt the packet to be written
165 * @param src the muxer the packet originally was intended for
166 * @return the value av_write_frame returned
167 */
168 int ff_write_chained(AVFormatContext *dst, int dst_stream, AVPacket *pkt,
169 AVFormatContext *src);
170
157 #endif /* AVFORMAT_INTERNAL_H */ 171 #endif /* AVFORMAT_INTERNAL_H */