1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-29 22:00:58 +02:00
FFmpeg/libavformat
James Almer aa79d13f51 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>
2022-09-24 12:16:15 -03:00
..
2022-05-10 07:37:38 +02:00
2022-09-23 20:27:35 +02:00
2022-03-27 11:58:54 +02:00
2022-09-23 20:27:35 +02:00
2022-03-27 11:59:51 +02:00
2022-06-13 22:42:55 +02:00
2022-06-13 22:42:55 +02:00
2022-09-04 15:03:32 -04:00
2022-06-09 20:46:10 +02:00
2022-05-10 07:37:38 +02:00
2022-03-16 14:05:26 +02:00
2022-03-16 14:05:26 +02:00
2022-04-21 22:42:20 +02:00
2022-09-10 17:32:47 +02:00
2022-06-24 23:07:33 -03:00
2022-09-22 17:44:05 +02:00
2022-05-10 07:37:38 +02:00
2022-07-16 22:40:44 +02:00
2022-05-06 15:57:45 +02:00
2022-09-16 10:02:19 +02:00
2022-09-23 20:27:35 +02:00
2022-05-10 07:37:38 +02:00
2022-05-10 07:37:38 +02:00
2022-05-10 07:37:38 +02:00
2022-03-26 00:42:00 +02:00
2022-07-07 21:52:52 +02:00
2022-08-31 16:24:22 +02:00
2022-05-10 07:37:38 +02:00
2022-09-23 20:27:35 +02:00
2022-03-15 09:42:38 -03:00
2022-05-10 07:37:38 +02:00
2022-03-15 09:42:38 -03:00
2022-03-15 09:42:38 -03:00
2022-03-15 09:42:38 -03:00
2022-03-15 09:42:39 -03:00
2022-03-15 09:42:39 -03:00
2022-03-15 09:42:39 -03:00