aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2021-06-03 15:28:02 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2021-06-03 15:28:02 +0200
commit5181ac4d62336b5cccecc725099017e2cd636f5e (patch)
treeb532aa1ad3fee5d2f9d18dccca4c88a6794c3439
parent95b8d59d1acf44b0f3d3d4b4fed0d07af45d702c (diff)
downloadnihav-5181ac4d62336b5cccecc725099017e2cd636f5e.tar.gz
remove trailing whitespaces
-rw-r--r--nihav-commonfmt/src/codecs/zmbvenc.rs4
-rw-r--r--nihav-game/src/codecs/q.rs2
-rw-r--r--nihav-llaudio/src/demuxers/flac.rs4
-rw-r--r--nihav-vivo/src/codecs/vivo.rs2
4 files changed, 6 insertions, 6 deletions
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;
}