diff options
author | Martin Storsjö <martin@martin.st> | 2010-05-21 07:07:57 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-05-21 07:07:57 +0000 |
commit | 9a761250699dc179c8e31caa55b1a785a5601e5e (patch) | |
tree | bac7f4d7c0a6016bc975b4194bb6fbd48a317a3f /libavformat/internal.h | |
parent | 6531b5c9f4388d28183be8f04d6cf2b42a2eee93 (diff) | |
download | ffmpeg-9a761250699dc179c8e31caa55b1a785a5601e5e.tar.gz |
Add a libavformat internal function ff_write_chained
Originally committed as revision 23207 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r-- | libavformat/internal.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h index a395c2f24b..db2a7c20d3 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -154,4 +154,18 @@ int ff_url_join(char *str, int size, const char *proto, 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 */ |