[FFmpeg-devel] [PATCH 8/9] avformat/pcm: remove max samples cap when calculating the default packet size

Marton Balint cus at passwd.hu
Wed Mar 6 00:51:46 EET 2024


For high sample rate audio it was suboptimal, calculate the low neighbour power
of two for the number of samples instead.

Signed-off-by: Marton Balint <cus at passwd.hu>
---
 libavformat/pcm.c                          |   6 +-
 tests/ref/fate/dcinema-encode              |  12 +-
 tests/ref/fate/filter-chorus               |  20 +--
 tests/ref/fate/g722-encode                 | 169 ++++++++++++---------
 tests/ref/fate/g726-encode-2bit            |  85 ++++++-----
 tests/ref/fate/g726-encode-3bit            |  43 +++---
 tests/ref/fate/g726-encode-4bit            | 169 ++++++++++++---------
 tests/ref/fate/g726-encode-5bit            |  43 +++---
 tests/ref/fate/matroska-move-cues-to-front |  52 ++-----
 tests/ref/seek/lavf-al                     |  46 +++---
 tests/ref/seek/lavf-ul                     |  46 +++---
 11 files changed, 365 insertions(+), 326 deletions(-)

diff --git a/libavformat/pcm.c b/libavformat/pcm.c
index b3d23110ab..1d5b83f481 100644
--- a/libavformat/pcm.c
+++ b/libavformat/pcm.c
@@ -25,7 +25,6 @@
 #include "pcm.h"
 
 #define PCM_DEMUX_TARGET_FPS  25
-#define PCM_DEMUX_MAX_SAMPLES 1024
 
 int ff_pcm_default_packet_size(AVCodecParameters *par)
 {
@@ -43,10 +42,11 @@ int ff_pcm_default_packet_size(AVCodecParameters *par)
 
     /*
      * Compute read size based on PCM_DEMUX_TARGET_FPS
-     * Clamp to PCM_DEMUX_MAX_SAMPLES if larger.
+     * Clamp to the low neighbour power of two.
      */
-    max_samples = FFMIN(PCM_DEMUX_MAX_SAMPLES, INT_MAX / par->block_align);
+    max_samples = INT_MAX / par->block_align;
     nb_samples = av_clip(par->sample_rate / PCM_DEMUX_TARGET_FPS, 1, max_samples);
+    nb_samples = 1 << av_log2(nb_samples);
 
     return par->block_align * nb_samples;
 }
diff --git a/tests/ref/fate/dcinema-encode b/tests/ref/fate/dcinema-encode
index 8eec68901e..ce5e9d2550 100644
--- a/tests/ref/fate/dcinema-encode
+++ b/tests/ref/fate/dcinema-encode
@@ -17,4 +17,14 @@
 0,      14000,      14000,     2000,    24000, 4c541973df0e37a77eca16022d4d316c
 0,      16000,      16000,     2000,    24000, 362d410570c821384e3ba30a03cdc907
 0,      18000,      18000,     2000,    24000, 00643563149102a4834841217a85d284
-0,      20000,      20000,      480,     5760, 7401d92e7105169bef3deb34e53e9605
+0,      20000,      20000,     2000,    24000, b05464f9576a7b0921138a0f663dbd14
+0,      22000,      22000,     2000,    24000, 945d750dc36eddf647caa7955ad46f80
+0,      24000,      24000,     2000,    24000, c4577bb6ed8bdda9643dfbd9398562b2
+0,      26000,      26000,     2000,    24000, 3dcf999734edeaacc35543dd5dab3a96
+0,      28000,      28000,     2000,    24000, b3ba7d2408aa60f533b5b96987fee59b
+0,      30000,      30000,     2000,    24000, 53600813d5d2954914e3fd6d234a95f0
+0,      32000,      32000,     2000,    24000, 20e2cbd977a93129039b0d0b3e89349f
+0,      34000,      34000,     2000,    24000, acffdfa3337a082091398ac8085882e1
+0,      36000,      36000,     2000,    24000, 5daaa9b578b92270de0394baadf37a2c
+0,      38000,      38000,     2000,    24000, 67a3b8af025b212a62229ae57f99f7a6
+0,      40000,      40000,      960,    11520, c6d89c32b3337e204245ec6f8d144aef
diff --git a/tests/ref/fate/filter-chorus b/tests/ref/fate/filter-chorus
index 219567d0e8..68513d49eb 100644
--- a/tests/ref/fate/filter-chorus
+++ b/tests/ref/fate/filter-chorus
@@ -3,13 +3,13 @@
 #codec_id 0: pcm_s16le
 #sample_rate 0: 22050
 #channel_layout_name 0: mono
-0,          0,          0,      882,     1764, 0xce976a71
-0,        882,        882,      882,     1764, 0xe7b76c72
-0,       1764,       1764,      882,     1764, 0x2b0b6c6f
-0,       2646,       2646,      882,     1764, 0xa65d6c4e
-0,       3528,       3528,      882,     1764, 0x9ebc6c6f
-0,       4410,       4410,      882,     1764, 0x902b6a72
-0,       5292,       5292,      882,     1764, 0x90d46a73
-0,       6174,       6174,      882,     1764, 0x92176a6f
-0,       7056,       7056,      882,     1764, 0xaaae6a74
-0,       7938,       7938,      882,     1764, 0x81da6c71
+0,          0,          0,      512,     1024, 0xf7e0f7d3
+0,        512,        512,      512,     1024, 0xb2abfeba
+0,       1024,       1024,      512,     1024, 0x672bfe34
+0,       1536,       1536,      512,     1024, 0x28a0fd03
+0,       2048,       2048,      512,     1024, 0x1175f9eb
+0,       2560,       2560,      512,     1024, 0xced2f971
+0,       3072,       3072,      512,     1024, 0x48c7006f
+0,       3584,       3584,      512,     1024, 0x500f0068
+0,       4096,       4096,      512,     1024, 0xbab9fb65
+0,       4608,       4608,      512,     1024, 0xd60ff7e5
diff --git a/tests/ref/fate/g722-encode b/tests/ref/fate/g722-encode
index 125c8321ba..2483a8a6e3 100644
--- a/tests/ref/fate/g722-encode
+++ b/tests/ref/fate/g722-encode
@@ -7,78 +7,97 @@
 #sample_rate 0: 16000
 #channel_layout_name 0: mono
 #stream#, dts,        pts, duration,     size, hash
-0,          0,          0,     1280,     2560, cd96995ecfa0edf214c1d6c7c6b37351
-0,       1280,       1280,     1280,     2560, d72d481d9c467656f8d36a94286e1a5b
-0,       2560,       2560,     1280,     2560, a09f0e46f2bc73d2454796bbfa1a59c8
-0,       3840,       3840,     1280,     2560, cfa9af21beab5786eb4ebaebf9e403c1
-0,       5120,       5120,     1280,     2560, 8649aecff1d284f20bbeed35c9b9a1e7
-0,       6400,       6400,     1280,     2560, 9faf9dc9c79df571fb08a2cb8d57f654
-0,       7680,       7680,     1280,     2560, d3ee9e40f674bee75647a115aefc9721
-0,       8960,       8960,     1280,     2560, d22fc90675529c56b0b9813213b59fd1
-0,      10240,      10240,     1280,     2560, 80a8385087ef739ffadc9d4314344ce2
-0,      11520,      11520,     1280,     2560, 251efeb72b7316a1c47c67d16584b62c
-0,      12800,      12800,     1280,     2560, d0e2936ff72e2f46c861f68ad8870aa9
-0,      14080,      14080,     1280,     2560, b47cd1cfffd504713de55ffc623319d3
-0,      15360,      15360,     1280,     2560, 8b1ead46d90c13c49de3bb2f3a8d05d0
-0,      16640,      16640,     1280,     2560, f8ae7db652a69bed10625f8c7a6a1eb0
-0,      17920,      17920,     1280,     2560, aeeb3df73249e3bb61aa2e4cd69c0f8f
-0,      19200,      19200,     1280,     2560, 10906b462f27de28080f0e85fbe0c6ab
-0,      20480,      20480,     1280,     2560, c99d1e7f33f6fee6803f9b5a9ade7903
-0,      21760,      21760,     1280,     2560, b28a0cb4037b3814bcf775c3f53011ac
-0,      23040,      23040,     1280,     2560, 3fecdb666569cb42119b1bb38460cccc
-0,      24320,      24320,     1280,     2560, f05d544ba2757313a53170c83a8355ef
-0,      25600,      25600,     1280,     2560, 93385f9efc40d8a05d36b65da388a72c
-0,      26880,      26880,     1280,     2560, d172f7595490cb7338c214a5730a5ea7
-0,      28160,      28160,     1280,     2560, 450d4d25e023546ba5bc93bca1dbfda0
-0,      29440,      29440,     1280,     2560, 4dc63487a12cd92b42b0b4b4342ba6ea
-0,      30720,      30720,     1280,     2560, c4829ec882be961e3eb503adb942e88e
-0,      32000,      32000,     1280,     2560, 093eb5b1eff2e3c6ecc1cd7cfb31190a
-0,      33280,      33280,     1280,     2560, 9a89ecb75fe2e5acd2a719479a7f618e
-0,      34560,      34560,     1280,     2560, bc13180d784163d1057227c514d6d5f7
-0,      35840,      35840,     1280,     2560, 3c6d0c72a466179ddfc477882e71423c
-0,      37120,      37120,     1280,     2560, 109743e2650f7978d931b998a5f07438
-0,      38400,      38400,     1280,     2560, ede31dd228b764406d13861b09b2b360
-0,      39680,      39680,     1280,     2560, 81bc38ca1068813a5953e649561a63ac
-0,      40960,      40960,     1280,     2560, 4bc7b871f8aa02533a1815f3c8e942a5
-0,      42240,      42240,     1280,     2560, a269372e59eede6ecd2a44500a92630b
-0,      43520,      43520,     1280,     2560, d6f06276f8e8a354ff75fd9593b09ef9
-0,      44800,      44800,     1280,     2560, 12c582c0d28d9373d77bb2dd50c8c052
-0,      46080,      46080,     1280,     2560, 2a4447ea1d7ad2b5e8b4fe19a2597f4e
-0,      47360,      47360,     1280,     2560, 722962cf9fe0a4327dbcf626b935f660
-0,      48640,      48640,     1280,     2560, e62a4c482bf6fa3fae9e0c9dbeb5e51f
-0,      49920,      49920,     1280,     2560, 000b14ecb533c0c24658cbe7734d3648
-0,      51200,      51200,     1280,     2560, a4dcc948c2aadc33c81a5bc5591ffb2d
-0,      52480,      52480,     1280,     2560, 94e75f66af8e31335c090042a1f63fc5
-0,      53760,      53760,     1280,     2560, cf4e38b36769a3fbcf7467c746ac2a1b
-0,      55040,      55040,     1280,     2560, f568270d6ff1f7bde6206360d9077f84
-0,      56320,      56320,     1280,     2560, ce63ca6e30c7af75b5188aad659d431e
-0,      57600,      57600,     1280,     2560, acd8534f856203f787ec8043aaf55185
-0,      58880,      58880,     1280,     2560, 50626cabcd732e4d071d4b73ae0e7e04
-0,      60160,      60160,     1280,     2560, 038990cbffc52a40552c6b027379b15c
-0,      61440,      61440,     1280,     2560, 6bdc159fc76b22500bd035edb7c2e1a3
-0,      62720,      62720,     1280,     2560, ee7ac329fe2fcf9e18afeea2fcfe6768
-0,      64000,      64000,     1280,     2560, b1abe3bcc36878412facb83270e6629d
-0,      65280,      65280,     1280,     2560, 326a9e4613119dc12e0a97e107e90442
-0,      66560,      66560,     1280,     2560, 569675a451b3b1b6e32fed683e0e4940
-0,      67840,      67840,     1280,     2560, 1e2db0be1805d797d0ec0fc928346d9e
-0,      69120,      69120,     1280,     2560, 3351ffe2a83a03b08331e819a1d0b7b9
-0,      70400,      70400,     1280,     2560, dce4210d528f17f28c397bb007f5b018
-0,      71680,      71680,     1280,     2560, e088d9c359d91e3a68d7f0889f84d14d
-0,      72960,      72960,     1280,     2560, c3f8a868eeda69e7d388f0f428de651b
-0,      74240,      74240,     1280,     2560, 17be00694027ccb870bada1f96bd6fcf
-0,      75520,      75520,     1280,     2560, b474e37998364312f0d86843a43dabb2
-0,      76800,      76800,     1280,     2560, 971255aafe9a4d96d44479e3df609aa7
-0,      78080,      78080,     1280,     2560, 1c912d86beab34eb2c6307a5e3699064
-0,      79360,      79360,     1280,     2560, 7addab61237812433409e5cf8eed2617
-0,      80640,      80640,     1280,     2560, e3b2838ff170a328d24f9bc2f1457fad
-0,      81920,      81920,     1280,     2560, 95a3ce68908eb179d1bb60a96ef21a26
-0,      83200,      83200,     1280,     2560, fc0bd36ad4cd4349ebf7c07c5fcda555
-0,      84480,      84480,     1280,     2560, 7a12e0d59365f42e78079093effea86c
-0,      85760,      85760,     1280,     2560, cb59a714ef2717932c89d5dd725084d8
-0,      87040,      87040,     1280,     2560, aaeb92b680b9a22fab9c3c305220821b
-0,      88320,      88320,     1280,     2560, e1f05444007910da6f212d751325f766
-0,      89600,      89600,     1280,     2560, fbeea303f52f37547dfceca570983895
-0,      90880,      90880,     1280,     2560, 53fbda08a3c3fb2d61ab124395092376
-0,      92160,      92160,     1280,     2560, 6cfd234af2e8855ddc4496e2868f5cd0
-0,      93440,      93440,     1280,     2560, 3959ebc0d5737a08784e3d129a0bcc5a
-0,      94720,      94720,     1280,     2560, 89ced69e400daf80524a5c53bcf28f6a
+0,          0,          0,     1024,     2048, 1c1386b0e7b879e8167eb977550bdf35
+0,       1024,       1024,     1024,     2048, 55e3e29bbe65c0f7407d8834a83a0ade
+0,       2048,       2048,     1024,     2048, 571e6fb80021e542142fe01a103ecc69
+0,       3072,       3072,     1024,     2048, 83011382b6f414692d92abb686788cb9
+0,       4096,       4096,     1024,     2048, 9a06df102b7d1186e762135c8bc6d582
+0,       5120,       5120,     1024,     2048, 63e154820e22f2e7d16750ac93ca1eaf
+0,       6144,       6144,     1024,     2048, 38f2cdaf82d17ca0eb2846269a9b1a34
+0,       7168,       7168,     1024,     2048, fe2ef66ebe4d2c64da3e7c8eb627eae0
+0,       8192,       8192,     1024,     2048, cedc08a3942ba23e5c6a3d6f1f74ae6a
+0,       9216,       9216,     1024,     2048, 67a8222a02707f4d65c69b939fe84d0b
+0,      10240,      10240,     1024,     2048, ed919fe83eaf67228bcde77317a34366
+0,      11264,      11264,     1024,     2048, d346b7040d2311b4eaec9385858b7d61
+0,      12288,      12288,     1024,     2048, 4f473fb7521a64b5585d0220cb8ca93d
+0,      13312,      13312,     1024,     2048, 583cf00b5befd0dc23e9b064135bc1b1
+0,      14336,      14336,     1024,     2048, e1cef7e9e31286bfb54a153f1fa295de
+0,      15360,      15360,     1024,     2048, f69aaef8f423015293bd0a198f40be49
+0,      16384,      16384,     1024,     2048, d98b2fc1ec2405085ccad3eca04c4070
+0,      17408,      17408,     1024,     2048, 2429e9f2977c3e49dd723a48113daada
+0,      18432,      18432,     1024,     2048, fca575165fea576bf816d8f501ec324c
+0,      19456,      19456,     1024,     2048, cbfd2cb1fddda21ff3ed26ea476b10c8
+0,      20480,      20480,     1024,     2048, 2b88a5acf3e78d957cab2e5e78f32438
+0,      21504,      21504,     1024,     2048, 05d4adc8108f8e29fb852d530c72f410
+0,      22528,      22528,     1024,     2048, 08ce6fc3b40d6437867579bc63670982
+0,      23552,      23552,     1024,     2048, abf7e3d67c4ea17c73d7a81b647a4918
+0,      24576,      24576,     1024,     2048, 801fafd5321f2de57482fee7b5a99313
+0,      25600,      25600,     1024,     2048, 5561e036d2d6bb38bad487b0fcda77f1
+0,      26624,      26624,     1024,     2048, 0baf5203ef990742cc5bf2bb7fbecc0f
+0,      27648,      27648,     1024,     2048, 46b18f50915e4a3d7ff724eb57426ef6
+0,      28672,      28672,     1024,     2048, fac33ebf6a43826bf9e87ea8be5e5be7
+0,      29696,      29696,     1024,     2048, 45b62acf264b64d0efcc31e0dc0df300
+0,      30720,      30720,     1024,     2048, 77d649a81d884cf761fbdd29d18fc8be
+0,      31744,      31744,     1024,     2048, 4020b38f123169426fd728d6701d6f75
+0,      32768,      32768,     1024,     2048, 7eb47921f532d3ab6c0817ef2b7ddc59
+0,      33792,      33792,     1024,     2048, 20065b1dba0a4e908ee84298f2210caf
+0,      34816,      34816,     1024,     2048, e778663551390bd2ca9ec147b3a77f3b
+0,      35840,      35840,     1024,     2048, 89d00677404385cfbad82377192571c2
+0,      36864,      36864,     1024,     2048, f1303f2c04c5cf4262173dc60c9e1cfa
+0,      37888,      37888,     1024,     2048, 12a2db77e79f51f9e24e98fff42b2bf4
+0,      38912,      38912,     1024,     2048, 1fee254456559dbf69e28b5d967362d0
+0,      39936,      39936,     1024,     2048, 52b3a04e0b7445535bc1b8bf07753daf
+0,      40960,      40960,     1024,     2048, c38ab46c990628591d0f6013b55bb5db
+0,      41984,      41984,     1024,     2048, e0a865817b0e9cac793e5f09e18b14b4
+0,      43008,      43008,     1024,     2048, 88a95b613acbfd1f596c2e4d225ba167
+0,      44032,      44032,     1024,     2048, 4039e5a57644ba2723f0030a2aa15a9b
+0,      45056,      45056,     1024,     2048, 70c01c12732a09aa1e7c70ca936f6ffa
+0,      46080,      46080,     1024,     2048, a1628c25a4826846e29fb8885e88fa22
+0,      47104,      47104,     1024,     2048, 1dc90bcd1a1895dba9e25d809897a87a
+0,      48128,      48128,     1024,     2048, 6c4292138b1424ee6aec7d4641a7f270
+0,      49152,      49152,     1024,     2048, 4497951c7ec8f3f5ed1164c632eaf3db
+0,      50176,      50176,     1024,     2048, 994f54d0192b3bb2981ce014e0e564ca
+0,      51200,      51200,     1024,     2048, 8a01132c029298395e706a8debce84e4
+0,      52224,      52224,     1024,     2048, 8e5bb6f201d4808dce5570777e8d3ddc
+0,      53248,      53248,     1024,     2048, fff8285921663a23fc77e1abdcde3ae6
+0,      54272,      54272,     1024,     2048, 8b9e40400ea39a078243c7f1bc946799
+0,      55296,      55296,     1024,     2048, 019ce606c8aa39e1e1322005f50ef9d3
+0,      56320,      56320,     1024,     2048, e7a2a8f286292d9055665db2afb10c2f
+0,      57344,      57344,     1024,     2048, 405b23de4ef7130bed53f9701d1930a4
+0,      58368,      58368,     1024,     2048, 4d298756428abeb55d61bd2a2e2c901c
+0,      59392,      59392,     1024,     2048, 689e75a700ad741f3ca2e28db0b543cc
+0,      60416,      60416,     1024,     2048, ec3f020ce36d1a948d95da2a6da68b01
+0,      61440,      61440,     1024,     2048, b73700c5569ae85b21458992176a3185
+0,      62464,      62464,     1024,     2048, d2d4469d9862f444881ff9ea0a742e07
+0,      63488,      63488,     1024,     2048, cdd274392300cb0aa20a31455d304481
+0,      64512,      64512,     1024,     2048, 1918ba512082dc686401238a9a44b0c4
+0,      65536,      65536,     1024,     2048, 70d069d52bb213542b82a8e38cfc9e0f
+0,      66560,      66560,     1024,     2048, d4522dfd28f19faffc44fc9c1d59d84b
+0,      67584,      67584,     1024,     2048, e61aa07624a499854f5656ae701f50c5
+0,      68608,      68608,     1024,     2048, d78e4afffa9241feca9de7aa455a01c1
+0,      69632,      69632,     1024,     2048, 149e47c7af5b18d02c304eefa90b142a
+0,      70656,      70656,     1024,     2048, 586789edc86cdd48533556188cc495ea
+0,      71680,      71680,     1024,     2048, b8d3ebe2af3bda2c0bb641b75e0219a0
+0,      72704,      72704,     1024,     2048, e0137eeed9fd48cb6732954ef22c0d10
+0,      73728,      73728,     1024,     2048, 231018234f1baa0e6baad582d5d3b0e8
+0,      74752,      74752,     1024,     2048, b63c4a19aa58681fa90c8845e5efd399
+0,      75776,      75776,     1024,     2048, 184437812369e9eac31b0bdff151993a
+0,      76800,      76800,     1024,     2048, bdd31cf8559d30df3fb1cab9147881ed
+0,      77824,      77824,     1024,     2048, b3ba69fec17a16aa7bf91bdaba7a3f4c
+0,      78848,      78848,     1024,     2048, 2a9e924965f97f0566189842e5506faf
+0,      79872,      79872,     1024,     2048, e079c85fec85d3da1e19e7ebb147732e
+0,      80896,      80896,     1024,     2048, 40af8f27b9edf3dbbaa54a65e5b53482
+0,      81920,      81920,     1024,     2048, ce10bdbfbd9871cfcbe4ef2de8bc161d
+0,      82944,      82944,     1024,     2048, 8220ab4d3991849b9bc7576be75529be
+0,      83968,      83968,     1024,     2048, 7f8aa0f1b25ba6ed1ea62533d82e0370
+0,      84992,      84992,     1024,     2048, a16bfcfa43b6344844a2cfa4ba19fcca
+0,      86016,      86016,     1024,     2048, a221853e3cd11df95f28fbc6bfe1c854
+0,      87040,      87040,     1024,     2048, d0fe03f1afc203892930183e1001b7dc
+0,      88064,      88064,     1024,     2048, fc664bd7be1b1bcd3aca87bc01dd9d50
+0,      89088,      89088,     1024,     2048, 556a2e7f518d7719c5811804ca50bf73
+0,      90112,      90112,     1024,     2048, a87d843fefd7012779fef452afb2c1ee
+0,      91136,      91136,     1024,     2048, 102cc35fbbad0640cd2154af38456398
+0,      92160,      92160,     1024,     2048, f8ab28ec788832f134a30631980a4333
+0,      93184,      93184,     1024,     2048, 9bff7f32bc2539aae139e947e3c18017
+0,      94208,      94208,     1024,     2048, 358ad5cb29882d0f842821b59a379e0d
+0,      95232,      95232,      768,     1536, f2e73352561bcfb76805725667ddf970
diff --git a/tests/ref/fate/g726-encode-2bit b/tests/ref/fate/g726-encode-2bit
index e7ed4c8413..483e107e73 100644
--- a/tests/ref/fate/g726-encode-2bit
+++ b/tests/ref/fate/g726-encode-2bit
@@ -7,41 +7,50 @@
 #sample_rate 0: 8000
 #channel_layout_name 0: mono
 #stream#, dts,        pts, duration,     size, hash
-0,          0,          0,     1280,     2560, f3ab112b1b0e900f2b936da73e14a125
-0,       1280,       1280,     1280,     2560, 22f2d94221d6f6ff85d50b287c0d13e9
-0,       2560,       2560,     1280,     2560, 01fb01c560b59ba5921c1e839e32fa8c
-0,       3840,       3840,     1280,     2560, 0385b5b73919c7184bcda319faefddde
-0,       5120,       5120,     1280,     2560, 8cd9ef1018b5169619b4baf1f99ea049
-0,       6400,       6400,     1280,     2560, 06a1a3e0582d03a2f32eb149855f0dd3
-0,       7680,       7680,     1280,     2560, c97f0f367b7a42aa1a8b396a835d0d64
-0,       8960,       8960,     1280,     2560, c02abe424728f38a4e6fe3cc42069831
-0,      10240,      10240,     1280,     2560, 6fe3da1d9299b9b5395afeef048b3cbc
-0,      11520,      11520,     1280,     2560, ac0971acae9ec3910c2cf39f62491466
-0,      12800,      12800,     1280,     2560, 715a285c131c2252bf286d5a11af1de2
-0,      14080,      14080,     1280,     2560, 3d90a8331fa11d2154195642311688ab
-0,      15360,      15360,     1280,     2560, ef621ba890460fb8e526d56cfc541be5
-0,      16640,      16640,     1280,     2560, 89be141dd2225e7045bc6650cbb9597e
-0,      17920,      17920,     1280,     2560, c1ccfa84e1e02903c835271a58d22113
-0,      19200,      19200,     1280,     2560, a47866a32feb4b6c5e372f4d0daec09a
-0,      20480,      20480,     1280,     2560, eb497427f47b81f61dd1c9c0e5974bbe
-0,      21760,      21760,     1280,     2560, 0c9bcf02f7519ec649216d5f2b0b5261
-0,      23040,      23040,     1280,     2560, 8abbd54d9ccca6a04b68177457adc7d7
-0,      24320,      24320,     1280,     2560, c5057c0d53da8623dfd0615a94dab1cf
-0,      25600,      25600,     1280,     2560, d34772bf2f19f44b7ea27bab285e7f41
-0,      26880,      26880,     1280,     2560, b3df3707bc95ce2f6420bcbf7603c33e
-0,      28160,      28160,     1280,     2560, 797dd52a17ad5cfdc7bd098c7101f7c2
-0,      29440,      29440,     1280,     2560, 86dda35ff2d5d8b8825747ac71ac1d0d
-0,      30720,      30720,     1280,     2560, 1028b04c740becf23cf58114198945bf
-0,      32000,      32000,     1280,     2560, bb3eb59d5af1db519b7f7fc2fc3e3b97
-0,      33280,      33280,     1280,     2560, f3e8a76ba0494edad76c49239c6d79d5
-0,      34560,      34560,     1280,     2560, eaf7c7daf474addfafe5ac947c729a85
-0,      35840,      35840,     1280,     2560, c4020767dcd200c8d39cdee32cc15563
-0,      37120,      37120,     1280,     2560, c3d5d41ae4ac67ef5d40e7c46fa980ed
-0,      38400,      38400,     1280,     2560, cbd3e3f07c2a321fcdea77eb3a61c1c7
-0,      39680,      39680,     1280,     2560, f7bd15761a8d1b7a045f5ffb015a5126
-0,      40960,      40960,     1280,     2560, 1352b4120a5cff7daab40c850a3ad4dd
-0,      42240,      42240,     1280,     2560, 1bf16db460df57dcc2a294864a8faad9
-0,      43520,      43520,     1280,     2560, a5091960966a453288c01959b9ecbd00
-0,      44800,      44800,     1280,     2560, 802cf1b2fd8fb9ae63edc0dbca9a72db
-0,      46080,      46080,     1280,     2560, dcf838cc0400996b3cabb46dd1d78091
-0,      47360,      47360,      640,     1280, 0825a77ec4cf6a812e394ddbe0cfdd00
+0,          0,          0,     1024,     2048, ff2564c16a9296fb944cefe184348a8f
+0,       1024,       1024,     1024,     2048, b021ebaee57a24dd452c150e4f7d4b3b
+0,       2048,       2048,     1024,     2048, 4c2ed3a14bdd88eb25166eed086bb407
+0,       3072,       3072,     1024,     2048, 38ec2281b14aaab7254cb64a1178d08b
+0,       4096,       4096,     1024,     2048, e2a31b38126de0c2a4cdc40daf5d022c
+0,       5120,       5120,     1024,     2048, 4c99381f08e4503d4916242510457ef0
+0,       6144,       6144,     1024,     2048, 6d347e0a6f7e81b13489c5e601df7dc5
+0,       7168,       7168,     1024,     2048, 0367910cd2da32be4ba43db7d00e1dd9
+0,       8192,       8192,     1024,     2048, d5db66c65bdfd11c4f55de3804d20798
+0,       9216,       9216,     1024,     2048, cca0b4633369a54586fbe4e802419756
+0,      10240,      10240,     1024,     2048, 2d7846bb0bc04774022c0530e9930a3f
+0,      11264,      11264,     1024,     2048, 5a824a1affdd3320d4a618f087bdc2cd
+0,      12288,      12288,     1024,     2048, 651e84c32d587ad731c4b6e725f06f46
+0,      13312,      13312,     1024,     2048, d2590a449cc92e644bd0f5de6f88aa9b
+0,      14336,      14336,     1024,     2048, 1ecee3e51d3bf694843c2f36a2473157
+0,      15360,      15360,     1024,     2048, 72238031ebfabc47099962b5c5c88914
+0,      16384,      16384,     1024,     2048, 8b1b06b5abe5839e212aacd5cb523759
+0,      17408,      17408,     1024,     2048, 8aa8752946d0c4d91c52c589761f5d34
+0,      18432,      18432,     1024,     2048, 2132325854a7903278d9e267b4e68038
+0,      19456,      19456,     1024,     2048, 1c66b3ef373bcc2e1bcc041db784033d
+0,      20480,      20480,     1024,     2048, 50cb7a96f82956827a01809b2e7c24af
+0,      21504,      21504,     1024,     2048, 26e701075003f5f1068b5c14fdd167b6
+0,      22528,      22528,     1024,     2048, 55a1bb50da39aed267b8877d590bbdc2
+0,      23552,      23552,     1024,     2048, 3eb80f07bac40b6236ad024743b8fd64
+0,      24576,      24576,     1024,     2048, d612c9ddcfdcb51973b86920fabcb4b4
+0,      25600,      25600,     1024,     2048, 48d232f3f3ad4a176bce5de5d8230f62
+0,      26624,      26624,     1024,     2048, e2dc134f2fec459419c0995322a8b216
+0,      27648,      27648,     1024,     2048, 7a9abf5e1084f6293f1c23d35e214200
+0,      28672,      28672,     1024,     2048, 96453c24f46a2dd5a18234d0b7ae8f55
+0,      29696,      29696,     1024,     2048, 605faf19833e320e870a5672a6a9a62c
+0,      30720,      30720,     1024,     2048, 2d5b0977f32c666973dca3114f7de9e5
+0,      31744,      31744,     1024,     2048, 0987e8a85fd839125d1ce7d597766a0a
+0,      32768,      32768,     1024,     2048, 5278495bc2efb8ff74c785fedc13176b
+0,      33792,      33792,     1024,     2048, d0b233a1f3af41f9e53cf890dc651d3a
+0,      34816,      34816,     1024,     2048, 677a757f47e4e55d0a63b2cc486ea666
+0,      35840,      35840,     1024,     2048, 858d203f7f2471e0ff536b10b2736bbc
+0,      36864,      36864,     1024,     2048, 9dc0a3d9448a2c89733febab8e653fda
+0,      37888,      37888,     1024,     2048, 4efcb6e305f0088067fb9666334b29eb
+0,      38912,      38912,     1024,     2048, 2ea0bc8d32e3b7bb92970d2dfcf6262f
+0,      39936,      39936,     1024,     2048, 5320aaf3114a552b7b09ec4297d46bfc
+0,      40960,      40960,     1024,     2048, 44934c500583cdb5a495816620dc585a
+0,      41984,      41984,     1024,     2048, 92e10ca698950366a80e40314788cddf
+0,      43008,      43008,     1024,     2048, d5e131e9c4eb5543fd95761e870a59f8
+0,      44032,      44032,     1024,     2048, ad22b690285d0daf08ecb48cde7375a2
+0,      45056,      45056,     1024,     2048, f5e754bd2b0e755e595295dc9c1e06a3
+0,      46080,      46080,     1024,     2048, 66cb904325f2af349203655df0f3b42d
+0,      47104,      47104,      896,     1792, 6523d8c6c4eda9bd244393fe85957a09
diff --git a/tests/ref/fate/g726-encode-3bit b/tests/ref/fate/g726-encode-3bit
index 2b714763b5..3e6ba8fb63 100644
--- a/tests/ref/fate/g726-encode-3bit
+++ b/tests/ref/fate/g726-encode-3bit
@@ -7,22 +7,27 @@
 #sample_rate 0: 8000
 #channel_layout_name 0: mono
 #stream#, dts,        pts, duration,     size, hash
-0,          0,          0,     2560,     5120, 541f86e88472104206b1fb48f337ff0a
-0,       2560,       2560,     2560,     5120, 5303a5e8e41a62a3193993cecd018875
-0,       5120,       5120,     2560,     5120, aa67abf20d31b1725a42c0fc646ed227
-0,       7680,       7680,     2560,     5120, 01c71275d7ad24250b4800709a6a9783
-0,      10240,      10240,     2560,     5120, c60745f2287bacb562c6ce7e92cc7498
-0,      12800,      12800,     2560,     5120, 5242ce9464420f0c7ce9ab8c7e63bdc8
-0,      15360,      15360,     2560,     5120, 8f8c9b0e06ed45f6f08b11e3f70a34ad
-0,      17920,      17920,     2560,     5120, 37fe7307137fcf760752d5fd65a446a0
-0,      20480,      20480,     2560,     5120, a2683017632e2fd5efb64cb3d2da3884
-0,      23040,      23040,     2560,     5120, 512b3e9a543b2d9002386187050c7f7e
-0,      25600,      25600,     2560,     5120, c630e8df0e006390a22cc3593d7c7c37
-0,      28160,      28160,     2560,     5120, e08e2ebdfe6f1a581b77247e76035117
-0,      30720,      30720,     2560,     5120, 1a25f9d9eeac8243b14410b7eaedd47b
-0,      33280,      33280,     2560,     5120, c3f8b4075f9b85df505e1ce7afaa34c0
-0,      35840,      35840,     2560,     5120, 93af21d167e70b2d8a218db530572439
-0,      38400,      38400,     2560,     5120, 7cc3c8338cafbbe2941f330dfda46d73
-0,      40960,      40960,     2560,     5120, 36015b4be5eaaf57f27d0258b43b0156
-0,      43520,      43520,     2560,     5120, 0b46668539b430dbf1f185e2bba5fc99
-0,      46080,      46080,     1920,     3840, 239f80bfdafac8eccdcfc378b65379f5
+0,          0,          0,     2048,     4096, 0d1b4788e55846e5154b9072cfa48f50
+0,       2048,       2048,     2048,     4096, 14b27a3119b521cf5a508867bc287788
+0,       4096,       4096,     2048,     4096, 4dad122c13995a416335f9f52ca48977
+0,       6144,       6144,     2048,     4096, c81582d00a1ed6b13e8c55a65ad9bd1b
+0,       8192,       8192,     2048,     4096, 75426b6d8087eaa4d6a9a2c8c5ea7d3c
+0,      10240,      10240,     2048,     4096, 139944c7a951ffa8bfa40e66b0baffce
+0,      12288,      12288,     2048,     4096, f530571c56358b142df7e2697d1eb341
+0,      14336,      14336,     2048,     4096, 0ebc8de0384e7903a4650d35354df538
+0,      16384,      16384,     2048,     4096, 74139e546791a12874b82c17b31e0ce7
+0,      18432,      18432,     2048,     4096, 7c3ff0fb55e5ac9a7d068e5d79e6f59c
+0,      20480,      20480,     2048,     4096, ca817a3aaff694e8249aff63a8d21ca5
+0,      22528,      22528,     2048,     4096, ea1d71c5a875d87fdb502b46db91bb51
+0,      24576,      24576,     2048,     4096, f121812a51c9e419bc35923be6662f00
+0,      26624,      26624,     2048,     4096, e96a60832c77cc7fa624f1c02c204261
+0,      28672,      28672,     2048,     4096, 0a78148ac779328133e80d4794ecb99a
+0,      30720,      30720,     2048,     4096, cbd2548928eab86f0a58a621cdfe45ec
+0,      32768,      32768,     2048,     4096, 3dfb27ee8637de797c7bf95ae28e27a1
+0,      34816,      34816,     2048,     4096, fb074c926c97032d12f42171c931854c
+0,      36864,      36864,     2048,     4096, 69cfd5b689221577f154239c4e3e63a5
+0,      38912,      38912,     2048,     4096, 442436ffd4adf6592900b31dd972c21c
+0,      40960,      40960,     2048,     4096, 318bb688efe75e1167c2a52db89d5628
+0,      43008,      43008,     2048,     4096, a2e895cfdbd7163fa13b7ea1b57e4a70
+0,      45056,      45056,     2048,     4096, ee331f3ff98b60dc90f19c69f0a945b5
+0,      47104,      47104,      896,     1792, ec9570964b043ee2d9691e87758c205f
diff --git a/tests/ref/fate/g726-encode-4bit b/tests/ref/fate/g726-encode-4bit
index 49f10adbae..373f35cf77 100644
--- a/tests/ref/fate/g726-encode-4bit
+++ b/tests/ref/fate/g726-encode-4bit
@@ -7,78 +7,97 @@
 #sample_rate 0: 8000
 #channel_layout_name 0: mono
 #stream#, dts,        pts, duration,     size, hash
-0,          0,          0,      640,     1280, 80f3a3b7c1a85914f6ca5cdb308cb0fd
-0,        640,        640,      640,     1280, c26971cc7e416d33e9ff20556912213b
-0,       1280,       1280,      640,     1280, 786e4e6ac64aac8b3a65e6bd224e8173
-0,       1920,       1920,      640,     1280, 47aac472631837335e24fa68c5965f11
-0,       2560,       2560,      640,     1280, 65c40426d04a19244294be5d64abaeda
-0,       3200,       3200,      640,     1280, 67b4f4a00b00a0be9e2da4250bc67880
-0,       3840,       3840,      640,     1280, 511d3e61cb1dc29e67cec72f2f814d01
-0,       4480,       4480,      640,     1280, 49cbbcc20e1b50575e419c7b970f34e8
-0,       5120,       5120,      640,     1280, 48f867700f6f8d5f4b05ca746d5cf2f3
-0,       5760,       5760,      640,     1280, 1b8f7f925a49b57949a212e1e83c41ff
-0,       6400,       6400,      640,     1280, 5e64ef1c54f1ede5f12d3d685a9482f5
-0,       7040,       7040,      640,     1280, ec9c5d43bbe03d7fa6288c59afcdb272
-0,       7680,       7680,      640,     1280, 27ff9ebc31d0398cded602c77ce0913e
-0,       8320,       8320,      640,     1280, 603b757cfd5c5ed46f9792a548e451d5
-0,       8960,       8960,      640,     1280, 78017062224d22f94aee954d890f63a9
-0,       9600,       9600,      640,     1280, 7eb92b65d7b6a0a24ccfbfadf727a40c
-0,      10240,      10240,      640,     1280, 030c034e519e9c087633bc026c97c94e
-0,      10880,      10880,      640,     1280, 7faf7a1968bcd3eb0a1396f0ee0ea65d
-0,      11520,      11520,      640,     1280, 045367e6485bc0dd469e7527331331d2
-0,      12160,      12160,      640,     1280, ecd404e7f8c59b4e96f250b5dc19338e
-0,      12800,      12800,      640,     1280, a1c813c6168bf6459511f8987b834dd3
-0,      13440,      13440,      640,     1280, e43f4dfa59b35f702899d26765a15a5b
-0,      14080,      14080,      640,     1280, 9c18838023c3b827e483dfe942a1008a
-0,      14720,      14720,      640,     1280, be139ae159ee6b761d218074d9890fb4
-0,      15360,      15360,      640,     1280, e8b1ad160f9cdba6586f4d8113d94a5c
-0,      16000,      16000,      640,     1280, f3317df77243b721586cb4b621e74e0e
-0,      16640,      16640,      640,     1280, d050113c65cefcb188e63ea7b98c1de6
-0,      17280,      17280,      640,     1280, f1c73e8b20b253785eddf40e29597803
-0,      17920,      17920,      640,     1280, 15f7e6d5a9dc449b0f201f4eb2f015e1
-0,      18560,      18560,      640,     1280, 2e7cd361b9f5514950020fa9b7fe0f89
-0,      19200,      19200,      640,     1280, a2b6753d2dab353931373df09d6dcb9f
-0,      19840,      19840,      640,     1280, 566b1b88df80217253f746d66b6edf15
-0,      20480,      20480,      640,     1280, 0930f17f7f9dbf22bf7996e971f92989
-0,      21120,      21120,      640,     1280, caecb9a421b624b9bde4d1a9391b1b7c
-0,      21760,      21760,      640,     1280, 4ae25bf74ad074c691da38a0b23df23e
-0,      22400,      22400,      640,     1280, 94625b39581eb4c734cf06895f1d27b9
-0,      23040,      23040,      640,     1280, 4bd49aa3b136246bc9acf3da1df3e258
-0,      23680,      23680,      640,     1280, 13e7ab6cc2e3603923dbf3d95810cfa1
-0,      24320,      24320,      640,     1280, bc083289c9f0e230064f7a9606b5ae61
-0,      24960,      24960,      640,     1280, a6420a56c064963c228fbb022262a9e8
-0,      25600,      25600,      640,     1280, 4ad4b04a7c728cf1e4f79bf2e98b5f01
-0,      26240,      26240,      640,     1280, 1152f12b1e1b170d740c29e8ec04be9b
-0,      26880,      26880,      640,     1280, f7343ebbee059ef2caef1ca54b262cc0
-0,      27520,      27520,      640,     1280, ef942ec802bbdc4bd1bb0ee6dd5a226d
-0,      28160,      28160,      640,     1280, 770abaea85aa3fc1d35f80c773bd5223
-0,      28800,      28800,      640,     1280, f704771c09dff105ac45a95ff4d2a6fc
-0,      29440,      29440,      640,     1280, 5591bfff3909d5eab958ffed1d8aa67c
-0,      30080,      30080,      640,     1280, 6f945af66f686049bbcfc1d63fa65f2f
-0,      30720,      30720,      640,     1280, 7a3d0ca75900f9f60dcf0d39a0231a1f
-0,      31360,      31360,      640,     1280, a4f43e17a7b6591ec436e960c9a8c51d
-0,      32000,      32000,      640,     1280, fe1750270c9a83a0fd2549e34d2931ef
-0,      32640,      32640,      640,     1280, b45cdbddb99fca73108f3b88ba47520d
-0,      33280,      33280,      640,     1280, 5f7d71a3dce9a9b585eed44545461232
-0,      33920,      33920,      640,     1280, a2d02629176000eac033d577a9dd8a3f
-0,      34560,      34560,      640,     1280, b360ac6d1be896bf7b06a00bad87fffc
-0,      35200,      35200,      640,     1280, 0ccfca9e249fa3cd5e84f11bfbb36d31
-0,      35840,      35840,      640,     1280, dadb9af58c7bf36d11141529c5cf47b7
-0,      36480,      36480,      640,     1280, bb93fb805676bad3db700c6ffb158ea4
-0,      37120,      37120,      640,     1280, d1644e28880fa9a72769581bd17a7107
-0,      37760,      37760,      640,     1280, 99ff80b2cea2a66b222a4958b55dbced
-0,      38400,      38400,      640,     1280, 28f3faa3601bb0f86963667054e18369
-0,      39040,      39040,      640,     1280, 4890d2572cf175e621df7ff1a8d8e773
-0,      39680,      39680,      640,     1280, f0ca68514e51098395c39522c497e0c5
-0,      40320,      40320,      640,     1280, c9dfff14163fb732de9bd19b113b89d9
-0,      40960,      40960,      640,     1280, aebfbd84e404f70d2840538c8960a083
-0,      41600,      41600,      640,     1280, 9bd717cb234015d2824ccb342074f97b
-0,      42240,      42240,      640,     1280, 6b437b90005a0bf82920f7aec8831492
-0,      42880,      42880,      640,     1280, 28aaad0bdf4c4abec77237925f159d0a
-0,      43520,      43520,      640,     1280, 021a0b8cd57ea41f0e5bc69b57c8d415
-0,      44160,      44160,      640,     1280, 95bad96686e9ca62b23305f2025db81c
-0,      44800,      44800,      640,     1280, fc4dd31e04f22f046a60cba44d3eeceb
-0,      45440,      45440,      640,     1280, abab1efdf2c6d97ae74e484c8b1414af
-0,      46080,      46080,      640,     1280, 0f5f2d1ea4af8df15110714da8b8e8c1
-0,      46720,      46720,      640,     1280, 5317f8e7153487130e3becfe0e340062
-0,      47360,      47360,      640,     1280, 3429ef08e003a2abc7e312ada94dca04
+0,          0,          0,      512,     1024, e462a78273c42c955f4a8d0764504527
+0,        512,        512,      512,     1024, ba393ab5be48c94532afdc8ed87b3283
+0,       1024,       1024,      512,     1024, 171b2d9d2d65199d454d93b990c25569
+0,       1536,       1536,      512,     1024, 87a31ad0a9fdd539924b89727887076b
+0,       2048,       2048,      512,     1024, 395ac07a8bdfce0c34a82037a791fdb6
+0,       2560,       2560,      512,     1024, cb9ffa454b026c8af6752915469addf1
+0,       3072,       3072,      512,     1024, 88155f5c52947fa0a6b41a5d90e7fcce
+0,       3584,       3584,      512,     1024, ff2635e9dc7a20b05670999f127bc07a
+0,       4096,       4096,      512,     1024, 03a8996fe239611a45a8b64fd1f5d882
+0,       4608,       4608,      512,     1024, d6b10d56939d34e62f1971bc0c17c3c4
+0,       5120,       5120,      512,     1024, 04dc70271ae47a9df5ef11259a2ec314
+0,       5632,       5632,      512,     1024, 61f932baa9284cd07e72d63bb5a844a7
+0,       6144,       6144,      512,     1024, 55c33714127a668e4fa5e275ff3023b5
+0,       6656,       6656,      512,     1024, 02298949b93e5eb30ba9eaa76bd2299e
+0,       7168,       7168,      512,     1024, dd528441ed14ca22bbed83db99fd5a23
+0,       7680,       7680,      512,     1024, 83663bf9a55778b4eb74cc30d0963aa0
+0,       8192,       8192,      512,     1024, be7e4fc320362f7aad761ce3f7fe0051
+0,       8704,       8704,      512,     1024, 0e0b6617db79c1abcb8736370c3f35cb
+0,       9216,       9216,      512,     1024, 7a60a2f7d5fa039f32b8f9cfd37174a4
+0,       9728,       9728,      512,     1024, 8d969ae43be3324dfd7e532526a2e532
+0,      10240,      10240,      512,     1024, faec94304ef2b068c3646fb4050df32d
+0,      10752,      10752,      512,     1024, dd5cb976f0cb4d0586300eb278afe7df
+0,      11264,      11264,      512,     1024, 9ef158e354b255bfbe9ae699deeb6cd2
+0,      11776,      11776,      512,     1024, 78f83960bca8ef1d2dff318337a43acd
+0,      12288,      12288,      512,     1024, d300c855cc71548fb3504632c953e5a8
+0,      12800,      12800,      512,     1024, 362a91b8c7c84520fa5a032fb5d655da
+0,      13312,      13312,      512,     1024, ecdda6aa40d4e74b95f651b353fbe0c9
+0,      13824,      13824,      512,     1024, 97480f331929b7499bb2034e102db5e8
+0,      14336,      14336,      512,     1024, db1f24dbf0b4e6f37e7454248a6cb458
+0,      14848,      14848,      512,     1024, dd134658d79dcbc0e3c90d35217a478c
+0,      15360,      15360,      512,     1024, eeebe168cb9284e616e94465a42b4b70
+0,      15872,      15872,      512,     1024, d3bc5f37e4406aa35fca099ce469357e
+0,      16384,      16384,      512,     1024, ac586b76406bdaeb2de1da67f9b43b96
+0,      16896,      16896,      512,     1024, 4e38638c1c18bce1d5bd50d5a899ad47
+0,      17408,      17408,      512,     1024, 4ccb0e5466069d31e69d0eca1bfd7770
+0,      17920,      17920,      512,     1024, 5460ce0371a18bfe04d07e97b1505165
+0,      18432,      18432,      512,     1024, afcc80a0a55751444989772cf03c00f6
+0,      18944,      18944,      512,     1024, 82d91887dad6dd833af2e43cbea50fca
+0,      19456,      19456,      512,     1024, eec16553e6390cde2e8887eba380c5dc
+0,      19968,      19968,      512,     1024, da4d253b64d3af1d023609be94c6a1fb
+0,      20480,      20480,      512,     1024, b4bdbccf49d28f3a0941d51c70ec928f
+0,      20992,      20992,      512,     1024, f996421690602ad42ed2606bc7e19186
+0,      21504,      21504,      512,     1024, 77c9d3e35234baf68dea6f22234779eb
+0,      22016,      22016,      512,     1024, fc7a022367f119ccd647430f3693243f
+0,      22528,      22528,      512,     1024, fbb4f54f9a797d98070b47e3efc80d2a
+0,      23040,      23040,      512,     1024, b2ab75d5dc9c21eb68c7fc0262643ac2
+0,      23552,      23552,      512,     1024, 3bcb8448769d665ef9038a39ee4a1ed8
+0,      24064,      24064,      512,     1024, 055ad0df8165f2e6195ea65f6e8a286a
+0,      24576,      24576,      512,     1024, ac6748536e6e72ddac23ae33d7c75ea0
+0,      25088,      25088,      512,     1024, c354c93bf03cd6b51c7c1d1cac38aa0b
+0,      25600,      25600,      512,     1024, 8a5240d53b27f1f25e693396825e7a62
+0,      26112,      26112,      512,     1024, fcaa5da746908c44d7bdc11cc207e7b1
+0,      26624,      26624,      512,     1024, 5c763e916d082e322a218a46fed8d97a
+0,      27136,      27136,      512,     1024, 929e311cde16d8dca809f7f2c8291624
+0,      27648,      27648,      512,     1024, b227c362d210386e507609edd2aece76
+0,      28160,      28160,      512,     1024, cc245fb14472eca204be5424b19f877b
+0,      28672,      28672,      512,     1024, 8dc27fb25d2966b0afa9927f43304bdc
+0,      29184,      29184,      512,     1024, 779a8e9d3e0016a62e47be0d43b9b919
+0,      29696,      29696,      512,     1024, 69cf5779c7c4d3a5fb752f9d362e923a
+0,      30208,      30208,      512,     1024, 1e25170a7059435b2e99292e3327062a
+0,      30720,      30720,      512,     1024, 726ca49e2452f29e7fd3c10e7e5b74ea
+0,      31232,      31232,      512,     1024, 28b54a82590645db94f2283c6e82bfc9
+0,      31744,      31744,      512,     1024, 41eff313ad24559ef08f7738adac60b3
+0,      32256,      32256,      512,     1024, 374706cf8beab83c2ec7d562bc2a4087
+0,      32768,      32768,      512,     1024, 76c3bd97ff43f123962724bf60fd9e94
+0,      33280,      33280,      512,     1024, 9951f8ddc0c3deae2d87d2d3e9d25082
+0,      33792,      33792,      512,     1024, e2402cfc3b6d9dbe922bbc28b5add776
+0,      34304,      34304,      512,     1024, 68e1b60ab9f22c51b3983c77917f811a
+0,      34816,      34816,      512,     1024, 7bbad0851f35458718255a91fb069fd0
+0,      35328,      35328,      512,     1024, a7f31c52e1937df0f20ca6ee2c743c31
+0,      35840,      35840,      512,     1024, 1cd1c915fb0f587433631d55d8e0fdc6
+0,      36352,      36352,      512,     1024, 93a932f376ee5637e0fd71faf0a7eb73
+0,      36864,      36864,      512,     1024, 560411042955f0bcefe7f0ec8d2a2da9
+0,      37376,      37376,      512,     1024, bdab5b8cecc1ff7f61e6fd9c9312006e
+0,      37888,      37888,      512,     1024, fefbe79648fae7aa569ef25c424bf08a
+0,      38400,      38400,      512,     1024, 18d6ff61ea03c8657e990e92d85a90c7
+0,      38912,      38912,      512,     1024, e2b0c109583da836d0dafcf1a1dcceb2
+0,      39424,      39424,      512,     1024, c14386f47a4059ae2af6e119229575af
+0,      39936,      39936,      512,     1024, 769694900bd69b3a33ec5f51ae08762a
+0,      40448,      40448,      512,     1024, a822a51963cdb5d8ddedeb865db6ceb9
+0,      40960,      40960,      512,     1024, 35a85df3d6cf7ae305b7653d46ce044b
+0,      41472,      41472,      512,     1024, 61176c6dfe177bab444ed94a88767158
+0,      41984,      41984,      512,     1024, 5585e560a3440bb0d265fe0d7db8e02d
+0,      42496,      42496,      512,     1024, 4d4bc0401e9ed6c988b81c94ddcc8e5f
+0,      43008,      43008,      512,     1024, 3f2c7de6a995cf66232178ac68e9512c
+0,      43520,      43520,      512,     1024, 72d5cbd6702b152f125296300f207e55
+0,      44032,      44032,      512,     1024, 016bc6d70e84c1c5d8349a799ee75007
+0,      44544,      44544,      512,     1024, 0133d1cee2f626e9506e96d9d6e17681
+0,      45056,      45056,      512,     1024, dd8a9f7e42479d057241ded25a1bbb65
+0,      45568,      45568,      512,     1024, 797999a8a13cd82969f182afea0abd12
+0,      46080,      46080,      512,     1024, e9bc67da89b93fca6b9ed9be6016c1d5
+0,      46592,      46592,      512,     1024, 2431cea96bc5410d59b7ff8ccb93c211
+0,      47104,      47104,      512,     1024, b2de5f02c365584f4757c557993b7fcb
+0,      47616,      47616,      384,      768, 82f8baf07ca30dd6d5cc84dd29030ab4
diff --git a/tests/ref/fate/g726-encode-5bit b/tests/ref/fate/g726-encode-5bit
index df302c59b8..ff36f0ed24 100644
--- a/tests/ref/fate/g726-encode-5bit
+++ b/tests/ref/fate/g726-encode-5bit
@@ -7,22 +7,27 @@
 #sample_rate 0: 8000
 #channel_layout_name 0: mono
 #stream#, dts,        pts, duration,     size, hash
-0,          0,          0,     2560,     5120, 06170a9254934525a324074924349d3a
-0,       2560,       2560,     2560,     5120, 339c0468c8e0a0d3d079608830b3b23b
-0,       5120,       5120,     2560,     5120, 94b2ccc80f2039aff2fd1804c5e7d996
-0,       7680,       7680,     2560,     5120, e3e89e128c140745a2f5ed6ec69ad37e
-0,      10240,      10240,     2560,     5120, d8af69a973c181e6f7062b61afd5a985
-0,      12800,      12800,     2560,     5120, cee2dcba6bd8353529b4796906ec2e5c
-0,      15360,      15360,     2560,     5120, 02e92b0f3344f7315016d55b36cf266c
-0,      17920,      17920,     2560,     5120, 8066f26d873a430ec65db62825f4018c
-0,      20480,      20480,     2560,     5120, dbe8b0d94fdb09863ff3a87bba31d0af
-0,      23040,      23040,     2560,     5120, 98322fa4637040c9245e1efe99c61ee6
-0,      25600,      25600,     2560,     5120, a20e98da03e04fb3f3336a1a1a9a3418
-0,      28160,      28160,     2560,     5120, 20fc201028fc27c858a3a2acb92d56f2
-0,      30720,      30720,     2560,     5120, 7ba1a3f12de057cb76576786c833788c
-0,      33280,      33280,     2560,     5120, 3317a89c362622d5aa3c67e0ddb42af4
-0,      35840,      35840,     2560,     5120, f8f858ef398e866b2a3b2f3de76b7122
-0,      38400,      38400,     2560,     5120, a600439cafbdb78f64b447b54fce6cad
-0,      40960,      40960,     2560,     5120, d78f318a6d9c070ee999f7e3f6854c21
-0,      43520,      43520,     2560,     5120, bf241d6d92f0899903922a37a2646fa4
-0,      46080,      46080,     1920,     3840, c97e94c2ff8358c12803eb1a004ed633
+0,          0,          0,     2048,     4096, a877060df28157bc4d18e8196ea2476b
+0,       2048,       2048,     2048,     4096, 047071c0ecbd8bccc4105484eae9f749
+0,       4096,       4096,     2048,     4096, bb8fd6609f227756a40e41bf559396af
+0,       6144,       6144,     2048,     4096, 42bfecf2656c8eb47e4552e9714fe705
+0,       8192,       8192,     2048,     4096, dc3cbf8f177791abbbdc2d048786037f
+0,      10240,      10240,     2048,     4096, 2966441f56fab3c93988c025c8177923
+0,      12288,      12288,     2048,     4096, b06c5b24c463d71dbfc8d6f13e836946
+0,      14336,      14336,     2048,     4096, 6e68821eca1ceaf49c9f09610d18cf38
+0,      16384,      16384,     2048,     4096, f1bd5559f34ae23c870b2571df69481d
+0,      18432,      18432,     2048,     4096, d05b6408f34c415310b2e37ee839edd4
+0,      20480,      20480,     2048,     4096, 28d1f0d789776754b385341c28d71818
+0,      22528,      22528,     2048,     4096, 45d2eef35230f003209936e2a665c75d
+0,      24576,      24576,     2048,     4096, ca749268804e6bd0fd7b6c091646cf13
+0,      26624,      26624,     2048,     4096, 7e1cc0b6c611b063ec0b4355a81db9da
+0,      28672,      28672,     2048,     4096, 77456fe98fad9445746d7eb3a6387114
+0,      30720,      30720,     2048,     4096, bad8723855b4834069e25f81f65fe908
+0,      32768,      32768,     2048,     4096, 77629983376f8f954fd11567aeaacade
+0,      34816,      34816,     2048,     4096, ff957d400a3a16cb64e9363ae647e1fb
+0,      36864,      36864,     2048,     4096, 0e8b11dbf88ad282b7fc63f71e95f89b
+0,      38912,      38912,     2048,     4096, 6a4dca3d249f3cb08eb56fa9fd22754f
+0,      40960,      40960,     2048,     4096, d2cb55bd5c60b92754e9d2811eeedb6c
+0,      43008,      43008,     2048,     4096, 9e56bc958b26f1a3aeffe84bdb35863e
+0,      45056,      45056,     2048,     4096, 862809c8d654f59f405b05c77e756008
+0,      47104,      47104,      896,     1792, 8b78dacc9c3682dc46cd4258ff9568c0
diff --git a/tests/ref/fate/matroska-move-cues-to-front b/tests/ref/fate/matroska-move-cues-to-front
index aef36c423b..30d034b8c5 100644
--- a/tests/ref/fate/matroska-move-cues-to-front
+++ b/tests/ref/fate/matroska-move-cues-to-front
@@ -1,5 +1,5 @@
-96e544691ecaeb5c49fcbd9351e47af8 *tests/data/fate/matroska-move-cues-to-front.matroska
-23147910 tests/data/fate/matroska-move-cues-to-front.matroska
+c0cb74130c1a776cd076c50012572ca0 *tests/data/fate/matroska-move-cues-to-front.matroska
+23081433 tests/data/fate/matroska-move-cues-to-front.matroska
 #tb 0: 1/1000
 #media_type 0: audio
 #codec_id 0: pcm_s24be
@@ -10,41 +10,13 @@
 #codec_id 1: pcm_s24le
 #sample_rate 1: 192000
 #channel_layout_name 1: stereo
-0,          0,          0,        5,     6144, 0x0afd2eda
-1,          0,          0,        5,     6144, 0x1f592eda
-0,          5,          5,        5,     6144, 0xd5e16fb3
-1,          5,          5,        5,     6144, 0x5c796fb3
-0,         11,         11,        5,     6144, 0xf0341c51
-1,         11,         11,        5,     6144, 0x22fc1c51
-0,         16,         16,        5,     6144, 0x444ebbe2
-1,         16,         16,        5,     6144, 0x5856bbe2
-0,         21,         21,        5,     6144, 0x03f10fa9
-1,         21,         21,        5,     6144, 0x022d0fa9
-0,         27,         27,        5,     6144, 0x153c7242
-1,         27,         27,        5,     6144, 0x2a1d7242
-0,         32,         32,        5,     6144, 0x23c5c2ce
-1,         32,         32,        5,     6144, 0xf37ec2ce
-0,         37,         37,        5,     6144, 0xea76f227
-1,         37,         37,        5,     6144, 0xc5f6f227
-0,         43,         43,        5,     6144, 0x1bf8d257
-1,         43,         43,        5,     6144, 0x1a84d257
-0,         48,         48,        5,     6144, 0xbf3bf14c
-1,         48,         48,        5,     6144, 0xe788f14c
-0,         53,         53,        5,     6144, 0x1d32dad7
-1,         53,         53,        5,     6144, 0x0d65dad7
-0,         59,         59,        5,     6144, 0x2e4963b5
-1,         59,         59,        5,     6144, 0xd92c63b5
-0,         64,         64,        5,     6144, 0x9e011e0d
-1,         64,         64,        5,     6144, 0xa8121e0d
-0,         69,         69,        5,     6144, 0x2177e43b
-1,         69,         69,        5,     6144, 0x0703e43b
-0,         75,         75,        5,     6144, 0xafc63815
-1,         75,         75,        5,     6144, 0x3c0c3815
-0,         80,         80,        5,     6144, 0xab1af266
-1,         80,         80,        5,     6144, 0x063ff266
-0,         85,         85,        5,     6144, 0xf4c77215
-1,         85,         85,        5,     6144, 0x284e7215
-0,         91,         91,        5,     6144, 0x584cf52e
-1,         91,         91,        5,     6144, 0x0b11f52e
-0,         96,         96,        5,     6144, 0x9f7e22b5
-1,         96,         96,        5,     6144, 0x35c622b5
+0,          0,          0,       21,    24576, 0xb53676cf
+1,          0,          0,       21,    24576, 0x96eb76cf
+0,         21,         21,       21,    24576, 0xf4ee36fe
+1,         21,         21,       21,    24576, 0xb35336fe
+0,         43,         43,       21,    24576, 0x58eb025c
+1,         43,         43,       21,    24576, 0x1ae9025c
+0,         64,         64,       21,    24576, 0x1a322ce1
+1,         64,         64,       21,    24576, 0xf11c2ce1
+0,         85,         85,       21,    24576, 0xfba5a91d
+1,         85,         85,       21,    24576, 0xef55a91d
diff --git a/tests/ref/seek/lavf-al b/tests/ref/seek/lavf-al
index 5a4085af4e..ebf7993425 100644
--- a/tests/ref/seek/lavf-al
+++ b/tests/ref/seek/lavf-al
@@ -1,50 +1,50 @@
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   882
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
 ret: 0         st:-1 flags:0  ts:-1.000000
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   882
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
 ret: 0         st:-1 flags:1  ts: 1.894167
-ret: 0         st: 0 flags:1 dts: 1.894150 pts: 1.894150 pos:  41766 size:   882
+ret: 0         st: 0 flags:1 dts: 1.894150 pts: 1.894150 pos:  41766 size:   512
 ret: 0         st: 0 flags:0  ts: 0.788345
-ret: 0         st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos:  17383 size:   882
+ret: 0         st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos:  17383 size:   512
 ret: 0         st: 0 flags:1  ts:-0.317506
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   882
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
 ret:-1         st:-1 flags:0  ts: 2.576668
 ret: 0         st:-1 flags:1  ts: 1.470835
-ret: 0         st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos:  32432 size:   882
+ret: 0         st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos:  32432 size:   512
 ret: 0         st: 0 flags:0  ts: 0.364989
-ret: 0         st: 0 flags:1 dts: 0.364989 pts: 0.364989 pos:   8048 size:   882
+ret: 0         st: 0 flags:1 dts: 0.364989 pts: 0.364989 pos:   8048 size:   512
 ret: 0         st: 0 flags:1  ts:-0.740816
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   882
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
 ret:-1         st:-1 flags:0  ts: 2.153336
 ret: 0         st:-1 flags:1  ts: 1.047503
-ret: 0         st: 0 flags:1 dts: 1.047483 pts: 1.047483 pos:  23097 size:   882
+ret: 0         st: 0 flags:1 dts: 1.047483 pts: 1.047483 pos:  23097 size:   512
 ret: 0         st: 0 flags:0  ts:-0.058322
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   882
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
 ret: 0         st: 0 flags:1  ts: 2.835828
-ret: 0         st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:  43218 size:   882
+ret: 0         st: 0 flags:1 dts: 1.987029 pts: 1.987029 pos:  43814 size:   286
 ret: 0         st:-1 flags:0  ts: 1.730004
-ret: 0         st: 0 flags:1 dts: 1.730023 pts: 1.730023 pos:  38147 size:   882
+ret: 0         st: 0 flags:1 dts: 1.730023 pts: 1.730023 pos:  38147 size:   512
 ret: 0         st:-1 flags:1  ts: 0.624171
-ret: 0         st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos:  13763 size:   882
+ret: 0         st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos:  13763 size:   512
 ret: 0         st: 0 flags:0  ts:-0.481678
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   882
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
 ret: 0         st: 0 flags:1  ts: 2.412517
-ret: 0         st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:  43218 size:   882
+ret: 0         st: 0 flags:1 dts: 1.987029 pts: 1.987029 pos:  43814 size:   286
 ret: 0         st:-1 flags:0  ts: 1.306672
-ret: 0         st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos:  28812 size:   882
+ret: 0         st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos:  28812 size:   512
 ret: 0         st:-1 flags:1  ts: 0.200839
-ret: 0         st: 0 flags:1 dts: 0.200816 pts: 0.200816 pos:   4428 size:   882
+ret: 0         st: 0 flags:1 dts: 0.200816 pts: 0.200816 pos:   4428 size:   512
 ret: 0         st: 0 flags:0  ts:-0.904989
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   882
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
 ret: 0         st: 0 flags:1  ts: 1.989161
 ret: 0         st: 0 flags:1 dts: 1.989161 pts: 1.989161 pos:  43861 size:   239
 ret: 0         st:-1 flags:0  ts: 0.883340
-ret: 0         st: 0 flags:1 dts: 0.883356 pts: 0.883356 pos:  19478 size:   882
+ret: 0         st: 0 flags:1 dts: 0.883356 pts: 0.883356 pos:  19478 size:   512
 ret: 0         st:-1 flags:1  ts:-0.222493
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   882
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
 ret:-1         st: 0 flags:0  ts: 2.671655
 ret: 0         st: 0 flags:1  ts: 1.565850
-ret: 0         st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos:  34527 size:   882
+ret: 0         st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos:  34527 size:   512
 ret: 0         st:-1 flags:0  ts: 0.460008
-ret: 0         st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos:  10143 size:   882
+ret: 0         st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos:  10143 size:   512
 ret: 0         st:-1 flags:1  ts:-0.645825
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   882
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
diff --git a/tests/ref/seek/lavf-ul b/tests/ref/seek/lavf-ul
index 5a4085af4e..ebf7993425 100644
--- a/tests/ref/seek/lavf-ul
+++ b/tests/ref/seek/lavf-ul
@@ -1,50 +1,50 @@
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   882
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
 ret: 0         st:-1 flags:0  ts:-1.000000
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   882
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
 ret: 0         st:-1 flags:1  ts: 1.894167
-ret: 0         st: 0 flags:1 dts: 1.894150 pts: 1.894150 pos:  41766 size:   882
+ret: 0         st: 0 flags:1 dts: 1.894150 pts: 1.894150 pos:  41766 size:   512
 ret: 0         st: 0 flags:0  ts: 0.788345
-ret: 0         st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos:  17383 size:   882
+ret: 0         st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos:  17383 size:   512
 ret: 0         st: 0 flags:1  ts:-0.317506
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   882
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
 ret:-1         st:-1 flags:0  ts: 2.576668
 ret: 0         st:-1 flags:1  ts: 1.470835
-ret: 0         st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos:  32432 size:   882
+ret: 0         st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos:  32432 size:   512
 ret: 0         st: 0 flags:0  ts: 0.364989
-ret: 0         st: 0 flags:1 dts: 0.364989 pts: 0.364989 pos:   8048 size:   882
+ret: 0         st: 0 flags:1 dts: 0.364989 pts: 0.364989 pos:   8048 size:   512
 ret: 0         st: 0 flags:1  ts:-0.740816
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   882
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
 ret:-1         st:-1 flags:0  ts: 2.153336
 ret: 0         st:-1 flags:1  ts: 1.047503
-ret: 0         st: 0 flags:1 dts: 1.047483 pts: 1.047483 pos:  23097 size:   882
+ret: 0         st: 0 flags:1 dts: 1.047483 pts: 1.047483 pos:  23097 size:   512
 ret: 0         st: 0 flags:0  ts:-0.058322
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   882
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
 ret: 0         st: 0 flags:1  ts: 2.835828
-ret: 0         st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:  43218 size:   882
+ret: 0         st: 0 flags:1 dts: 1.987029 pts: 1.987029 pos:  43814 size:   286
 ret: 0         st:-1 flags:0  ts: 1.730004
-ret: 0         st: 0 flags:1 dts: 1.730023 pts: 1.730023 pos:  38147 size:   882
+ret: 0         st: 0 flags:1 dts: 1.730023 pts: 1.730023 pos:  38147 size:   512
 ret: 0         st:-1 flags:1  ts: 0.624171
-ret: 0         st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos:  13763 size:   882
+ret: 0         st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos:  13763 size:   512
 ret: 0         st: 0 flags:0  ts:-0.481678
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   882
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
 ret: 0         st: 0 flags:1  ts: 2.412517
-ret: 0         st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:  43218 size:   882
+ret: 0         st: 0 flags:1 dts: 1.987029 pts: 1.987029 pos:  43814 size:   286
 ret: 0         st:-1 flags:0  ts: 1.306672
-ret: 0         st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos:  28812 size:   882
+ret: 0         st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos:  28812 size:   512
 ret: 0         st:-1 flags:1  ts: 0.200839
-ret: 0         st: 0 flags:1 dts: 0.200816 pts: 0.200816 pos:   4428 size:   882
+ret: 0         st: 0 flags:1 dts: 0.200816 pts: 0.200816 pos:   4428 size:   512
 ret: 0         st: 0 flags:0  ts:-0.904989
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   882
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
 ret: 0         st: 0 flags:1  ts: 1.989161
 ret: 0         st: 0 flags:1 dts: 1.989161 pts: 1.989161 pos:  43861 size:   239
 ret: 0         st:-1 flags:0  ts: 0.883340
-ret: 0         st: 0 flags:1 dts: 0.883356 pts: 0.883356 pos:  19478 size:   882
+ret: 0         st: 0 flags:1 dts: 0.883356 pts: 0.883356 pos:  19478 size:   512
 ret: 0         st:-1 flags:1  ts:-0.222493
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   882
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
 ret:-1         st: 0 flags:0  ts: 2.671655
 ret: 0         st: 0 flags:1  ts: 1.565850
-ret: 0         st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos:  34527 size:   882
+ret: 0         st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos:  34527 size:   512
 ret: 0         st:-1 flags:0  ts: 0.460008
-ret: 0         st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos:  10143 size:   882
+ret: 0         st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos:  10143 size:   512
 ret: 0         st:-1 flags:1  ts:-0.645825
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   882
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
-- 
2.35.3



More information about the ffmpeg-devel mailing list