summaryrefslogtreecommitdiff
path: root/libavformat/avformat.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-02-04 15:58:11 +0100
committerAnton Khirnov <anton@khirnov.net>2014-02-10 15:08:06 +0100
commit394fb56c29eee7f4f8f0334d8b5d30d3c54ac703 (patch)
tree957284729dec1fabad8c571f9de4b786fc2f6737 /libavformat/avformat.h
parent682b2a809b446c4ca45f88a84c1d92ccfcbcfbd1 (diff)
lavf: always unref the packet passed to av_interleaved_write_frame() on error
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r--libavformat/avformat.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 71ff0fc15b..0b8fca21a7 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -1589,7 +1589,8 @@ int av_write_frame(AVFormatContext *s, AVPacket *pkt);
* correct values.
* @endparblock
*
- * @return 0 on success, a negative AVERROR on error.
+ * @return 0 on success, a negative AVERROR on error. Libavformat will always
+ * take care of freeing the packet, even if this function fails.
*
* @see av_write_frame(), AVFormatContext.max_interleave_delta
*/