diff --git a/utils/livesync/src/livesync/imp.rs b/utils/livesync/src/livesync/imp.rs
index ce7a0364..268eb1d7 100644
--- a/utils/livesync/src/livesync/imp.rs
+++ b/utils/livesync/src/livesync/imp.rs
@@ -1302,36 +1302,43 @@ impl LiveSync {
let buffer = out_buffer.make_mut();
if !duplicate {
- let duration = state.out_duration.map_or(DEFAULT_DURATION, |dur| {
- dur.clamp(MINIMUM_DURATION, MAXIMUM_DURATION)
- });
+ let duration_is_valid =
+ (MINIMUM_DURATION..=MAXIMUM_DURATION).contains(&buffer.duration().unwrap());
- if let Some(audio_info) = &state.out_audio_info {
- let Some(size) = audio_info
- .convert::