From: Kostya Shishkov Date: Mon, 17 Mar 2025 17:50:26 +0000 (+0100) Subject: pcmenc: return 1/samplerate as timebase when possible X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=db2b28c9c5e73768b073bd9e33a38c5a6c513042;p=nihav.git pcmenc: return 1/samplerate as timebase when possible --- 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;