diff options
author | Jindrich Makovicka <jindrich.makovicka@nangu.tv> | 2012-03-21 11:42:32 +0100 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-03-27 11:12:55 +0300 |
commit | 904100e5fc13dacc954b1d093bf87bc44f4e7a7b (patch) | |
tree | 7d5097685665baf50a5000d808c4b02963828c40 /libavformat/avformat.h | |
parent | c9024a9fd7ea7980f876a65816da8da78dd9d88d (diff) | |
download | ffmpeg-904100e5fc13dacc954b1d093bf87bc44f4e7a7b.tar.gz |
make av_interleaved_write_frame() flush packets when pkt is NULL
This patch allows the user to force flushing of all queued packets
by calling av_interleaved_write_frame() with pkt set to NULL.
Signed-off-by: Jindrich Makovicka <jindrich.makovicka@nangu.tv>
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index cd7ece8458..087b0b45e1 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -1436,6 +1436,8 @@ int av_write_frame(AVFormatContext *s, AVPacket *pkt); * @param s media file handle * @param pkt The packet containing the data to be written. Libavformat takes * ownership of the data and will free it when it sees fit using the packet's + * This can be NULL (at any time, not just at the end), to flush the + * interleaving queues. * @ref AVPacket.destruct "destruct" field. The caller must not access the data * after this function returns, as it may already be freed. * Packet's @ref AVPacket.stream_index "stream_index" field must be set to the |