diff options
author | James Almer <jamrial@gmail.com> | 2022-09-21 00:01:40 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-09-24 12:23:50 -0300 |
commit | 57e15b2e07d0194d710e0de2a28ac70bdcf8aaeb (patch) | |
tree | 74e023b0cb21bdf27ff2ab52e97c7e305bd7e556 /libavutil/internal.h | |
parent | c1b8ffbed83e79c2a12a8e3639baae6160a484c5 (diff) | |
download | ffmpeg-57e15b2e07d0194d710e0de2a28ac70bdcf8aaeb.tar.gz |
avformat/cafenc: derive Opus frame size from the relevant stream parameters
Use the stream duration as last resort, as an off-by-one result of the
"st->duration / (caf->packets - 1)" calculation can break playback on some
devices.
Also, don't write the sample_rate value propagated by encoders like libopus.
The sample rate of the audio fed to it is irrelevant after being encoded.
Fixes ticket #9930.
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit aa79d13f51aa820c7e5f07784a2512434e68bc46)
Diffstat (limited to 'libavutil/internal.h')
0 files changed, 0 insertions, 0 deletions