From db2b28c9c5e73768b073bd9e33a38c5a6c513042 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Mon, 17 Mar 2025 18:50:26 +0100 Subject: [PATCH] pcmenc: return 1/samplerate as timebase when possible --- nihav-commonfmt/src/codecs/pcm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nihav-commonfmt/src/codecs/pcm.rs b/nihav-commonfmt/src/codecs/pcm.rs index abf0f85..dbc7174 100644 --- a/nihav-commonfmt/src/codecs/pcm.rs +++ b/nihav-commonfmt/src/codecs/pcm.rs @@ -216,7 +216,7 @@ impl NAEncoder for PCMEncoder { } else { let block_len = u64::from(ainfo.sample_rate) * u64::from(encinfo.tb_num) / u64::from(encinfo.tb_den); - (block_len as u32, ainfo.sample_rate, block_len as usize * slot_size) + (1, ainfo.sample_rate, block_len as usize * slot_size) }; let mut new_ainfo = ainfo; -- 2.39.5