From: Kostya Shishkov Date: Thu, 3 Jun 2021 13:28:02 +0000 (+0200) Subject: remove trailing whitespaces X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=5181ac4d62336b5cccecc725099017e2cd636f5e;p=nihav.git remove trailing whitespaces --- diff --git a/nihav-commonfmt/src/codecs/zmbvenc.rs b/nihav-commonfmt/src/codecs/zmbvenc.rs index 8ba976a..0d5c1af 100644 --- a/nihav-commonfmt/src/codecs/zmbvenc.rs +++ b/nihav-commonfmt/src/codecs/zmbvenc.rs @@ -365,7 +365,7 @@ impl ZMBVEncoder { bw.write_buf(&self.zbuf)?; } - + Ok(()) } } @@ -404,7 +404,7 @@ impl NAEncoder for ZMBVEncoder { NACodecTypeInfo::Video(vinfo) => { self.width = vinfo.width; self.height = vinfo.height; - + let out_info = NAVideoInfo::new(vinfo.width, vinfo.height, false, vinfo.format); let info = NACodecInfo::new("zmbv", NACodecTypeInfo::Video(out_info), None); let mut stream = NAStream::new(StreamType::Video, stream_id, info, encinfo.tb_num, encinfo.tb_den, 0); diff --git a/nihav-game/src/codecs/q.rs b/nihav-game/src/codecs/q.rs index df1c7a6..ff6b647 100644 --- a/nihav-game/src/codecs/q.rs +++ b/nihav-game/src/codecs/q.rs @@ -157,7 +157,7 @@ impl QVideoDecoder { }, 0xFC => { const MV_PART: [i8; 16] = [ 0, 4, 8, 12, 16, 20, 24, 28, -32, -4, -8, -12, -16, -20, -24, -28 ]; - + let idx = br.read_byte()? as usize; let x = MV_PART[(idx & 0xF) as usize] as isize; let y = MV_PART[(idx >> 4) as usize] as isize; diff --git a/nihav-llaudio/src/demuxers/flac.rs b/nihav-llaudio/src/demuxers/flac.rs index b941bf4..c20bc3d 100644 --- a/nihav-llaudio/src/demuxers/flac.rs +++ b/nihav-llaudio/src/demuxers/flac.rs @@ -99,9 +99,9 @@ impl<'a> FLACDemuxer<'a> { _ => 256 << (bsz_id - 8), }; let pts = u64::from(read_utf8(&buf[4..])?); - + validate!(idx < buf.len()); - + (blksamps, pts) }; diff --git a/nihav-vivo/src/codecs/vivo.rs b/nihav-vivo/src/codecs/vivo.rs index 7f99a52..c1d78c9 100644 --- a/nihav-vivo/src/codecs/vivo.rs +++ b/nihav-vivo/src/codecs/vivo.rs @@ -95,7 +95,7 @@ fn gen_clip_tab(clip_tab: &mut [i16; 64], q: u8) { clip_tab[(32 + i) as usize] = i; } for i in lim..q { - let val = q - i; + let val = q - i; clip_tab[(32 - i) as usize] = -val; clip_tab[(32 + i) as usize] = val; }