From c8cbb04cc2cb7f0de033580807b001772fdb4feb Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Tue, 7 Apr 2020 14:28:20 +0200 Subject: [PATCH] rv10: use OBMC if the codec flavour requires it --- nihav-realmedia/src/codecs/rv10.rs | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.39.5