]> granicus.if.org Git - libvpx/commitdiff
Remove the speed condition in setting compute_source_sad.
authorMarco <marpan@google.com>
Tue, 26 Sep 2017 22:47:14 +0000 (15:47 -0700)
committerMarco <marpan@google.com>
Tue, 26 Sep 2017 22:48:34 +0000 (15:48 -0700)
The speed condition is not needed, feature can used for any
speed in 1 pass code.

Change-Id: I878ef3f63a075302eda48c0343fa243c80aab9ba

vp9/encoder/vp9_encoder.c

index 10b419966872f18c5fad6454dd304d3b81608959..bb93da4f4763e3c228d4614d630917fa84048504 100644 (file)
@@ -3434,7 +3434,7 @@ static void encode_without_recode_loop(VP9_COMP *cpi, size_t *size,
   // scene detection and for superblock content state in CBR mode).
   // The flag may get reset below based on SVC or resizing state.
   cpi->compute_source_sad_onepass =
-      cpi->oxcf.mode == REALTIME && cpi->oxcf.speed >= 5 && cm->show_frame;
+      cpi->oxcf.mode == REALTIME && cm->show_frame;
 
   vpx_clear_system_state();