ffmpeg/libavformat
James Almer 57e15b2e07 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)
2022-09-24 12:23:50 -03:00
..
2021-04-27 11:48:06 -03:00
2021-06-10 16:51:44 +02:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-12-31 17:26:01 +10:00
2022-01-09 21:26:58 +01:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-07-22 15:02:30 +02:00
2021-03-31 22:01:36 +02:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-02-02 23:53:29 +01:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2022-09-01 00:41:28 +02:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-09-26 08:51:58 +02:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-07-08 16:03:17 +02:00
2021-04-27 11:48:06 -03:00
2022-08-31 21:35:14 +02:00
2021-07-22 15:02:30 +02:00
2021-07-20 11:20:04 +05:30
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-08-06 22:49:26 +02:00
2021-12-31 17:26:01 +10:00
2021-07-22 15:02:30 +02:00
2021-12-31 14:44:20 +05:30
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2022-03-28 23:18:56 +02:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-12-25 11:59:47 +01:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-06-18 18:58:25 +02:00
2021-09-07 18:07:11 +10:00
2021-09-24 00:14:01 +02:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-10-07 11:52:10 +02:00
2021-12-02 01:41:55 +10:00
2022-09-01 00:41:28 +02:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-07-08 16:03:18 +02:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-10-09 11:42:16 +02:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00
2021-04-27 11:48:06 -03:00