From 394fb56c29eee7f4f8f0334d8b5d30d3c54ac703 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 4 Feb 2014 15:58:11 +0100 Subject: lavf: always unref the packet passed to av_interleaved_write_frame() on error --- libavformat/avformat.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavformat/avformat.h') 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 */ -- cgit v1.2.3