aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-realmedia
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2020-02-11 12:53:03 +0100
committerKostya Shishkov <kostya.shishkov@gmail.com>2020-02-11 12:53:03 +0100
commitd24468d9dbd54f5cbe414649ff061699337fa7fe (patch)
tree451d31701380ceebe97a6fe587966664179806e8 /nihav-realmedia
parentfa90ccfb8676a917a02fbb56381f86aa1962d313 (diff)
downloadnihav-d24468d9dbd54f5cbe414649ff061699337fa7fe.tar.gz
remove trailing whitespaces
Diffstat (limited to 'nihav-realmedia')
-rw-r--r--nihav-realmedia/src/codecs/rv60.rs4
-rw-r--r--nihav-realmedia/src/codecs/rv60dsp.rs2
-rw-r--r--nihav-realmedia/src/demuxers/realmedia.rs2
3 files changed, 4 insertions, 4 deletions
diff --git a/nihav-realmedia/src/codecs/rv60.rs b/nihav-realmedia/src/codecs/rv60.rs
index 827f7e0..14b487d 100644
--- a/nihav-realmedia/src/codecs/rv60.rs
+++ b/nihav-realmedia/src/codecs/rv60.rs
@@ -253,7 +253,7 @@ enum PUType {
const RV60_PU_TYPES: [PUType; 8] = [
PUType::Full, PUType::N2Hor, PUType::N2Ver, PUType::Quarters,
- PUType::N4Hor, PUType::N34Hor, PUType::N4Ver, PUType::N34Ver,
+ PUType::N4Hor, PUType::N34Hor, PUType::N4Ver, PUType::N34Ver,
];
impl PUType {
@@ -1283,7 +1283,7 @@ println!(" left {} bits", br.left());
} else {
b_mv = ZERO_MV;
}
-
+
MVInfo { f_mv: mvi.f_mv + f_mv, b_mv: mvi.b_mv + b_mv, mvref: mvi.mvref }
}
fn fill_skip_cand(&mut self, hdr: &FrameHeader, skip_cand: &mut UniqueList<MVInfo>, size: usize) {
diff --git a/nihav-realmedia/src/codecs/rv60dsp.rs b/nihav-realmedia/src/codecs/rv60dsp.rs
index 3c88f39..a5ec0c8 100644
--- a/nihav-realmedia/src/codecs/rv60dsp.rs
+++ b/nihav-realmedia/src/codecs/rv60dsp.rs
@@ -167,7 +167,7 @@ fn filter_luma_edge(dst: &mut [u8], mut offset: usize, step: usize, stride: usiz
let str_q = strength!(diff_p1p0[0] + diff_p1p0[1] + diff_p1p0[2] + diff_p1p0[3], lim2);
if str_p + str_q > 2 {
let msum = ((mode1 + mode2 + str_q + str_p) >> 1) as i16;
- let (maxprod, weak) = if (str_q == 1) || (str_p == 1) { (512, true) } else { (384, false) };
+ let (maxprod, weak) = if (str_q == 1) || (str_p == 1) { (512, true) } else { (384, false) };
for y in 0..4 {
let diff_p0q0 = diff!(dst, offset, offset - step);
if (diff_p0q0 != 0) && (lim1 * diff_p0q0.abs() < maxprod) {
diff --git a/nihav-realmedia/src/demuxers/realmedia.rs b/nihav-realmedia/src/demuxers/realmedia.rs
index feeb390..8f7b101 100644
--- a/nihav-realmedia/src/demuxers/realmedia.rs
+++ b/nihav-realmedia/src/demuxers/realmedia.rs
@@ -1130,7 +1130,7 @@ impl<'a> RealMediaDemuxer<'a> {
let _next_idx = self.src.read_u32be()?;
validate!(chunk_size == num_entries * 14 + 10);
if num_entries == 0 { return Ok(()); }
-
+
seek_idx.add_stream(str_id);
let idx = seek_idx.get_stream_index(str_id).unwrap();
for _ in 0..num_entries {