Fix misspelling in misc. comments

Change-Id: Id9f49a6c7e48084192f23a1838b595a82c811433
diff --git a/aom_dsp/x86/loopfilter_sse2.c b/aom_dsp/x86/loopfilter_sse2.c
index e1981e5..c021f50 100644
--- a/aom_dsp/x86/loopfilter_sse2.c
+++ b/aom_dsp/x86/loopfilter_sse2.c
@@ -23,8 +23,8 @@
 }
 
 // this function treats its input as 2 parallel 8x4 matrices, transposes each of
-// them to 4x8  independently while flipping the second matrix horizontaly. Used
-// for 14 taps pq pairs creation
+// them to 4x8  independently while flipping the second matrix horizontally.
+// Used for 14 taps pq pairs creation
 static INLINE void transpose_pq_14_sse2(__m128i *x0, __m128i *x1, __m128i *x2,
                                         __m128i *x3, __m128i *q0p0,
                                         __m128i *q1p1, __m128i *q2p2,
diff --git a/av1/av1_cx_iface.c b/av1/av1_cx_iface.c
index d42d818..3a51ecd 100644
--- a/av1/av1_cx_iface.c
+++ b/av1/av1_cx_iface.c
@@ -110,7 +110,7 @@
   int allow_warped_motion;       // frame level
   int enable_filter_intra;       // enable filter intra for sequence
   int enable_smooth_intra;       // enable smooth intra modes for sequence
-  int enable_paeth_intra;        // enable Peeth intra mode for sequence
+  int enable_paeth_intra;        // enable Paeth intra mode for sequence
   int enable_cfl_intra;          // enable CFL uv intra mode for sequence
   int enable_superres;
   int enable_palette;
diff --git a/av1/common/restoration.h b/av1/common/restoration.h
index 5d196a9..6d6ba37 100644
--- a/av1/common/restoration.h
+++ b/av1/common/restoration.h
@@ -22,7 +22,7 @@
 extern "C" {
 #endif
 
-// Boarder for Loop restoration buffer
+// Border for Loop restoration buffer
 #define AOM_RESTORATION_FRAME_BORDER 32
 #define CLIP(x, lo, hi) ((x) < (lo) ? (lo) : (x) > (hi) ? (hi) : (x))
 #define RINT(x) ((x) < 0 ? (int)((x)-0.5) : (int)((x) + 0.5))
diff --git a/av1/encoder/encodeframe.c b/av1/encoder/encodeframe.c
index 23ec00e..50b619f 100644
--- a/av1/encoder/encodeframe.c
+++ b/av1/encoder/encodeframe.c
@@ -3564,7 +3564,7 @@
 }
 
 // Performs fullpixel simple_motion_search with LAST_FRAME and ALTREF_FRAME on
-// each subblocks and extract the variance and sse of residues. Then store the
+// each subblock and extract the variance and sse of residues. Then store the
 // var and sse from each partition subblock to features. The DC qindex is also
 // stored in features.
 // Here features is assumed to be a length 19 array.
diff --git a/av1/encoder/rdopt.c b/av1/encoder/rdopt.c
index 1f46b46..28caad0 100644
--- a/av1/encoder/rdopt.c
+++ b/av1/encoder/rdopt.c
@@ -3228,7 +3228,7 @@
   const uint16_t *eobs_ptr = x->plane[plane].eobs;
 
   // Used mse based threshold logic to take decision of R-D of optimization of
-  // coeffs. For snaller residuals, coeff optimization would be helpful. For
+  // coeffs. For smaller residuals, coeff optimization would be helpful. For
   // larger residuals, R-D optimization may not be effective.
   // TODO(any): Experiment with variance and mean based thresholds
   perform_block_coeff_opt = (block_mse_q8 <= cpi->coeff_opt_dist_threshold);
@@ -11337,7 +11337,7 @@
   }
 
   if (ref_frame[0] > INTRA_FRAME && ref_frame[1] == INTRA_FRAME) {
-    // Mode must by compatible
+    // Mode must be compatible
     if (!is_interintra_allowed_mode(this_mode)) return 1;
     if (!is_interintra_allowed_bsize(bsize)) return 1;
   }