]> git.nihav.org Git - nihav.git/commitdiff
rv10: use OBMC if the codec flavour requires it
authorKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 7 Apr 2020 12:28:20 +0000 (14:28 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 7 Apr 2020 14:34:46 +0000 (16:34 +0200)
nihav-realmedia/src/codecs/rv10.rs

index 93dcb39bade7cd96ec0a5723b0fad9fd30dc3b68..7cfc4c360a2d8277a8cae02e9bfc47229700a15f 100644 (file)
@@ -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;
             }