Re: [libav-devel] [PATCH 1/2] lavc: initialize output AVFrame before decoding.

2012-11-12 Thread Gil Pedersen
On 23/10/2012, at 08.33, Anton Khirnov an...@khirnov.net wrote: Avoids memleaks with audio when extended_data is nontrivial and the user doesn't reset the frame. Shouldn't have any effect for video for now, but might be useful in the future. --- libavcodec/utils.c |4 1 file

Re: [libav-devel] [PATCH 1/2] lavc: initialize output AVFrame before decoding.

2012-11-12 Thread Anton Khirnov
On Mon, 12 Nov 2012 10:57:30 +, Gil Pedersen g...@cmi.aau.dk wrote: On 23/10/2012, at 08.33, Anton Khirnov an...@khirnov.net wrote: Avoids memleaks with audio when extended_data is nontrivial and the user doesn't reset the frame. Shouldn't have any effect for video for now, but might

Re: [libav-devel] [PATCH 1/2] lavc: initialize output AVFrame before decoding.

2012-11-12 Thread Gil Pedersen
On 12/11/2012, at 12.32, Anton Khirnov an...@khirnov.netmailto:an...@khirnov.net wrote: This patch breaks the API for avcodec_decode_audio4(). The frame parameter is specified as an out option, but it now requires the input data to be zero'ed, otherwise you risk free() being called on a random

Re: [libav-devel] [PATCH 1/2] lavc: initialize output AVFrame before decoding.

2012-11-12 Thread Anton Khirnov
On Mon, 12 Nov 2012 12:10:33 +, Gil Pedersen g...@cmi.aau.dk wrote: On 12/11/2012, at 12.32, Anton Khirnov an...@khirnov.netmailto:an...@khirnov.net wrote: This patch breaks the API for avcodec_decode_audio4(). The frame parameter is specified as an out option, but it now requires

[libav-devel] [PATCH 1/2] lavc: initialize output AVFrame before decoding.

2012-10-23 Thread Anton Khirnov
Avoids memleaks with audio when extended_data is nontrivial and the user doesn't reset the frame. Shouldn't have any effect for video for now, but might be useful in the future. --- libavcodec/utils.c |4 1 file changed, 4 insertions(+) diff --git a/libavcodec/utils.c

Re: [libav-devel] [PATCH 1/2] lavc: initialize output AVFrame before decoding.

2012-10-23 Thread Justin Ruggles
On 10/23/2012 02:33 AM, Anton Khirnov wrote: Avoids memleaks with audio when extended_data is nontrivial and the user doesn't reset the frame. Shouldn't have any effect for video for now, but might be useful in the future. --- libavcodec/utils.c |4 1 file changed, 4 insertions(+)