mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 20:01:56 +00:00
e7b629cd39
### Description When converting between AAC and Opus formats (aac2opus or opus2aac), the `av_frame_get_buffer` API is frequently called. ### Objective The goal is to optimize the code logic and reduce the frequent allocation and deallocation of memory. In the case of aac2opus, av_frame_get_buffer is still frequently called. In the case of opus2aac, the goal is to avoid calling av_frame_get_buffer and reduce memory allocations. ### Additional Note Before calling the `av_audio_fifo_read` API, use `av_frame_make_writable` to check if the frame is writable. If it is not writable, create a new frame. --------- Co-authored-by: john <hondaxiao@tencent.com> |
||
---|---|---|
.. | ||
adapter-7.4.0.js | ||
adapter-7.4.0.min.js | ||
AdobeFlashPlayerInstall.swf | ||
bootstrap.min.js | ||
dash-v4.5.1.all.min.js | ||
dash.all.min.js.map | ||
hls-0.14.17.min.js | ||
hls.min.js.map | ||
jquery-1.12.2.min.js | ||
jquery-1.12.2.min.map | ||
json2.js | ||
mpegts-1.7.3.min.js | ||
mpegts.js.map | ||
srs.log.js | ||
srs.page.js | ||
srs.player.js | ||
srs.publisher.js | ||
srs.sdk.js | ||
srs.utility.js | ||
swfobject.js | ||
winlin.utility.js |