[Libav-user] Audio encoding using avcodec_fill_audio_frame() and memory leaks
praks411 at gmail.com
Fri May 17 14:20:37 CEST 2013
Thanks for the reply. I've noted that If I just disable
av_interleaved_write_frame and keep the remaining code as it is then there
is no memory leak. The memory for AVPacket is getting allocated in
avcodec_encode_audio2 and if I use av_free_packet with destruct field set to
av_packet_destruct than there is no crash. However if I enable
av_interleaved_write_frame then I'm seeing a crash if destruct field is set.
I tried following
But again I'm seeing exception.
So what all memory do I need to free before calling av_free_packet. And
strangely this is happening only for audio my video encoding is working
View this message in context: http://libav-users.943685.n4.nabble.com/Audio-encoding-using-avcodec-fill-audio-frame-and-memory-leaks-tp4657623p4657626.html
Sent from the libav-users mailing list archive at Nabble.com.
More information about the Libav-user