[Libav-user] performance issue about audio decoding
qw
applemax82 at 163.com
Mon Sep 7 05:19:55 CEST 2015
Hi,
I intend to use avcodec_decode_audio4(). below is url link of the function description:
http://ffmpeg.org/doxygen/2.6/group__lavc__decoding.html#ga834bb1b062fbcc2de4cf7fb93f154a3e
where, decoder will allocate a buffer for decoded frame.
Does it mean, decoder will allocate a buffer once avcodec_decode_audio4() is called? If I will avcodec_decode_audio4() thousand times, decoder will allocate buffer thousand times. If so, i think it's too much to consume system resource. Why don't decoder or other object allocate buffer only once?
Thanks!
B.R.
andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20150907/097666e4/attachment.html>
More information about the Libav-user
mailing list