aboutsummaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2022-09-21 00:01:40 -0300
committerJames Almer <jamrial@gmail.com>2022-09-24 12:20:24 -0300
commit746a21063065535d6b758a46e86df411bce69d9f (patch)
tree764a7b69801df1d872c865385ac2256f431d909d /compat
parentf202a1fdf75d0e7f48a2e8d63c2d390cc4b19c85 (diff)
downloadffmpeg-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