Merge "ANS: Remove extra buffer size checks causing a false decode error." into nextgenv2
diff --git a/vp10/decoder/decodeframe.c b/vp10/decoder/decodeframe.c
index af57ac6..17e7401 100644
--- a/vp10/decoder/decodeframe.c
+++ b/vp10/decoder/decodeframe.c
@@ -3173,9 +3173,6 @@
                          &td->bit_reader, pbi->decrypt_cb,
                          pbi->decrypt_state);
 #else
-      if (buf->size < 3 || !read_is_valid(buf->data, buf->size, data_end))
-        vpx_internal_error(&cm->error, VPX_CODEC_CORRUPT_FRAME,
-                           "Truncated packet or corrupt tile length");
       setup_token_decoder(buf->data, data_end, buf->size, &cm->error,
                           &td->bit_reader, pbi->decrypt_cb,
                           pbi->decrypt_state);