mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
### 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> |
||
|---|---|---|
| .. | ||
| css | ||
| img | ||
| js | ||
| api-server_index.html | ||
| crossdomain.xml | ||
| index.html | ||
| nginx_index.html | ||
| rtc_player.html | ||
| rtc_publisher.html | ||
| srs-http-server_index.html | ||
| srs_bwt.html | ||
| srs_chat.html | ||
| srs_gb28181.html | ||
| srs_player.html | ||
| srs_player_deprecated.html | ||
| srs_publisher.html | ||
| srs_publisher_flash.html | ||
| vlc.html | ||
| whep.html | ||
| whip.html | ||