From: Kostya Shishkov Date: Tue, 7 Apr 2020 12:28:20 +0000 (+0200) Subject: rv10: use OBMC if the codec flavour requires it X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=c8cbb04cc2cb7f0de033580807b001772fdb4feb;p=nihav.git rv10: use OBMC if the codec flavour requires it --- diff --git a/nihav-realmedia/src/codecs/rv10.rs b/nihav-realmedia/src/codecs/rv10.rs index 93dcb39..7cfc4c3 100644 --- a/nihav-realmedia/src/codecs/rv10.rs +++ b/nihav-realmedia/src/codecs/rv10.rs @@ -431,6 +431,9 @@ impl NADecoder for RealVideo10Decoder { println!("ver {:06X} -> {}", ver, mic_ver); validate!(maj_ver == 1); self.new_ver = mic_ver > 1; + if mic_ver == 2 { + self.dec = H263BaseDecoder::new_with_opts(H263DEC_OPT_HAS_OBMC); + } if (src[3] & 1) != 0 { self.mvmode = MVMode::UMV; }