v0.3.8

Revert "Updated libaom to use v1.0.0-errata1 (and fixed up associated codec_aom.c)"

This reverts commit 581b9bb6668ef6435107c63a2fee5b8714332321.
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0558e6c..217f5c8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,10 @@
 ## [Unreleased]
 
 ## [0.3.7] - 2019-09-04
+### Changed
+- Reverted codec_aom and libaom to use previous SHA (v1.0.0-errata1 is ancient)
+
+## [0.3.7] - 2019-09-04
 ### Added
 - Check for proper width/height/depth when decoding alpha with dav1d, matching libaom's impl
 
@@ -142,7 +146,8 @@
 - Constants `AVIF_VERSION`, `AVIF_VERSION_MAJOR`, `AVIF_VERSION_MINOR`, `AVIF_VERSION_PATCH`
 - `avifVersion()` function
 
-[Unreleased]: https://github.com/AOMediaCodec/libavif/compare/v0.3.7...HEAD
+[Unreleased]: https://github.com/AOMediaCodec/libavif/compare/v0.3.8...HEAD
+[0.3.8]: https://github.com/AOMediaCodec/libavif/compare/v0.3.7...v0.3.8
 [0.3.7]: https://github.com/AOMediaCodec/libavif/compare/v0.3.6...v0.3.7
 [0.3.6]: https://github.com/AOMediaCodec/libavif/compare/v0.3.5...v0.3.6
 [0.3.5]: https://github.com/AOMediaCodec/libavif/compare/v0.3.4...v0.3.5
diff --git a/ext/aom.cmd b/ext/aom.cmd
index 78aa286..08a6b27 100755
--- a/ext/aom.cmd
+++ b/ext/aom.cmd
@@ -3,4 +3,4 @@
 
 : # The odd choice of comment style in this file is to try to share this script between *nix and win32.
 
-git clone -n https://aomedia.googlesource.com/aom && cd aom && git checkout v1.0.0-errata1 && cd ..
+git clone -n https://aomedia.googlesource.com/aom && cd aom && git checkout 38711e7fe1eff68296b0324a9809804aec359fa5 && cd ..
diff --git a/src/codec_aom.c b/src/codec_aom.c
index a8bbf3e..44967d5 100644
--- a/src/codec_aom.c
+++ b/src/codec_aom.c
@@ -130,6 +130,7 @@
                 break;
             case AOM_IMG_FMT_YV12:
             case AOM_IMG_FMT_AOMYV12:
+            case AOM_IMG_FMT_YV1216:
                 yuvFormat = AVIF_PIXEL_FORMAT_YV12;
                 break;
             case AOM_IMG_FMT_NONE:
@@ -337,6 +338,9 @@
     if (lossless) {
         aom_codec_control(&aomEncoder, AV1E_SET_LOSSLESS, 1);
     }
+    if (encoder->maxThreads > 1) {
+        aom_codec_control(&aomEncoder, AV1E_SET_ROW_MT, 1);
+    }
     if (encoder->tileRowsLog2 != 0) {
         int tileRowsLog2 = AVIF_CLAMP(encoder->tileRowsLog2, 0, 6);
         aom_codec_control(&aomEncoder, AV1E_SET_TILE_ROWS, tileRowsLog2);