1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-14 20:31:56 +00:00
srs/trunk
chundonglinlin f1db76011b RTC: Refine FFmpeg opus audio noisy issue. v5.0.197 (#3852)
When converting between AAC and Opus formats (aac2opus or opus2aac), the
`av_frame_get_buffer` API is frequently called.

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.

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>
2023-11-04 16:28:52 +08:00
..
3rdparty Upgrade libsrt to v1.5.3. v5.0.183 (#3808) 2023-09-21 22:31:38 +08:00
auto RTC: Refine FFmpeg opus audio noisy issue. v5.0.197 (#3852) 2023-11-04 16:28:52 +08:00
conf RTC: Fix FFmpeg opus audio noisy issue. v5.0.195 (#3845) 2023-10-25 11:58:35 +08:00
doc RTC: Refine FFmpeg opus audio noisy issue. v5.0.197 (#3852) 2023-11-04 16:28:52 +08:00
etc/init.d Squash: Fix bugs 2022-01-13 18:26:28 +08:00
gdb ST: Support show coroutines. 2020-12-10 11:36:24 +08:00
ide/srs_clion RTC: Fix FFmpeg opus audio noisy issue. v5.0.195 (#3845) 2023-10-25 11:58:35 +08:00
modules Moduels: Refine the description 2021-04-21 11:18:35 +08:00
packaging Windows: Refine cygwin pipeline (#3260) 2022-11-21 14:32:26 +08:00
research RTC: Refine FFmpeg opus audio noisy issue. v5.0.197 (#3852) 2023-11-04 16:28:52 +08:00
scripts Package script support extra options. v5.0.102 2022-12-03 18:56:21 +08:00
src RTC: Refine FFmpeg opus audio noisy issue. v5.0.197 (#3852) 2023-11-04 16:28:52 +08:00
usr/lib/systemd/system Squash: Support RPM. Fix bugs. 2021-11-04 07:37:17 +08:00
.gitignore For #2136: API: Cleanup no active streams for statistics. v5.0.42 2022-08-19 19:45:19 +08:00
AUTHORS.md Update new authors. 2022-12-31 12:22:05 +08:00
AUTHORS.txt Update AUTHORS 2021-08-25 07:43:35 +08:00
configure Added system library option for ffmpeg, srtp, srt libraries. v5.0.193 (#3846) 2023-10-20 22:35:18 +08:00
Dockerfile.builds Use new cache image name. v5.0.186 2023-10-08 21:13:47 +08:00
Dockerfile.cov GB28181: Enable regression test for gb28181. v5.0.122 2022-12-31 19:36:49 +08:00
Dockerfile.pkg GB28181: Enable GB for CentOS 7 package. v5.0.103 2022-12-03 18:56:55 +08:00
Dockerfile.test GB28181: Enable regression test for gb28181. v5.0.122 2022-12-31 19:36:49 +08:00