reversed HR coefficient order for av1_write_coeffs_txb and av1_read_coeffs_txb
diff --git a/av1/decoder/decodetxb.c b/av1/decoder/decodetxb.c
index a32820d..3959564 100644
--- a/av1/decoder/decodetxb.c
+++ b/av1/decoder/decodetxb.c
@@ -715,7 +715,7 @@
     }
   }
 
-  for (int c = 0; c < *eob; ++c) {
+  for (int c = *eob - 1; c >= 0; --c) {
     const int pos = scan[c];
     uint8_t sign;
     tran_low_t level = levels[get_padded_idx(pos, bwl)];
diff --git a/av1/encoder/encodetxb.c b/av1/encoder/encodetxb.c
index 828b9ac..9bc2c04 100644
--- a/av1/encoder/encodetxb.c
+++ b/av1/encoder/encodetxb.c
@@ -1003,8 +1003,8 @@
 #endif
 
   // Loop to code all signs in the transform block,
-  // starting with the sign of DC (if applicable)
-  for (int c = 0; c < eob; ++c) {
+  // starting with the sign of the EOB coefficient (if applicable)
+  for (int c = eob - 1; c >= 0; --c) {
     const tran_low_t v = tcoeff[scan[c]];
     const tran_low_t level = abs(v);
     const int sign = (v < 0) ? 1 : 0;