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:20:24 -0300 |
commit | 746a21063065535d6b758a46e86df411bce69d9f (patch) | |
tree | 764a7b69801df1d872c865385ac2256f431d909d /compat | |
parent | f202a1fdf75d0e7f48a2e8d63c2d390cc4b19c85 (diff) | |
download | ffmpeg-746a21063065535d6b758a46e86df411bce69d9f.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>
Diffstat (limited to 'compat')
0 files changed, 0 insertions, 0 deletions