From 152e8f78a8e9bec46513e55394fe85e79d162a30 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sat, 11 Apr 2020 10:48:46 +0200 Subject: [PATCH] core/soundcvt: fix buffer type in test --- nihav-core/src/soundcvt/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nihav-core/src/soundcvt/mod.rs b/nihav-core/src/soundcvt/mod.rs index 1b7b030..bea95d1 100644 --- a/nihav-core/src/soundcvt/mod.rs +++ b/nihav-core/src/soundcvt/mod.rs @@ -576,7 +576,7 @@ mod test { block_len: 512, }; let mut src_frm = alloc_audio_buffer(src_ainfo, 42, chcfg51.clone()).unwrap(); - if let NABufferType::AudioPacked(ref mut abuf) = src_frm { + if let NABufferType::AudioU8(ref mut abuf) = src_frm { let data = abuf.get_data_mut().unwrap(); let mut idx = 0; for _ in 0..42 { -- 2.39.5