From 5a461d8e1164ff4f6bdd79f4d674b6b13f373a13 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 2 Feb 2007 11:19:58 +0000 Subject: [PATCH] packets must be correctly interleaved Originally committed as revision 7805 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/utils.c b/libavformat/utils.c index 69b3cea628..4782159eae 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2314,6 +2314,8 @@ static void truncate_ts(AVStream *st, AVPacket *pkt){ * Write a packet to an output media file. * * The packet shall contain one audio or video frame. + * The packet must be correctly interleaved according to the container specification, + * if not then av_interleaved_write_frame must be used * * @param s media file handle * @param pkt the packet, which contains the stream_index, buf/buf_size, dts/pts, ...