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:16:15 -0300 |
commit | aa79d13f51aa820c7e5f07784a2512434e68bc46 (patch) | |
tree | 6687dac2df3a70c251312d609884bcc3dd78c3c4 /tests/filtergraphs/vstack | |
parent | 257eea3db44bb4862b0fa56e12f5627cb3f8fed4 (diff) | |
download | ffmpeg-aa79d13f51aa820c7e5f07784a2512434e68bc46.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 'tests/filtergraphs/vstack')
0 files changed, 0 insertions, 0 deletions