aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tiny_ssim.c
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:16:15 -0300
commitaa79d13f51aa820c7e5f07784a2512434e68bc46 (patch)
tree6687dac2df3a70c251312d609884bcc3dd78c3c4 /tests/tiny_ssim.c
parent257eea3db44bb4862b0fa56e12f5627cb3f8fed4 (diff)
downloadffmpeg-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/tiny_ssim.c')
0 files changed, 0 insertions, 0 deletions