Avcodec_fill_audio_frame

0 views
Skip to first unread message

Astrea Busbin

unread,
Aug 5, 2024, 3:13:56 AM8/5/24
to geosynthconscont
Asa part of encoding decoded audio packets, I'm using avcodec_fill_audio_frame(). I'm passing allocated AVFrame pointer to along with buffer containing the decoded samples and other parameters number of channels, sample format, buffer size. Though the encoding is working fine I'm not able to completely eliminate the memory leaks. I've taken care of most of things but still I'm not able detect the leakage. Below is the function which I'm using for encoding. Please suggest something. AudioSample contains decoded data and it is completely managed in different class(free in class destructor). I'm freeing the AVFrame in FFmpegEncoder destructor and AVPacket is freed every time using av_free_packet() with av_packet_destruct enabled. What more do I need to free?

3a8082e126
Reply all
Reply to author
Forward
0 new messages