Change encoder initialization in unit tests

In some unit tests, the set control is done when video->frame() is 1.
Modified it so that the config initialization was done before encoding
frames.

Change-Id: I698b17b518fec64275f23cec68cf51bd8b60a716
diff --git a/test/qm_test.cc b/test/qm_test.cc
index c87506b..d1dfbb8 100644
--- a/test/qm_test.cc
+++ b/test/qm_test.cc
@@ -33,7 +33,7 @@
 
   virtual void PreEncodeFrameHook(::libaom_test::VideoSource *video,
                                   ::libaom_test::Encoder *encoder) {
-    if (video->frame() == 1) {
+    if (video->frame() == 0) {
       encoder->Control(AOME_SET_CPUUSED, set_cpu_used_);
       encoder->Control(AV1E_SET_ENABLE_QM, 1);
       encoder->Control(AV1E_SET_QM_MIN, qm_min_);