Fix SurfaceTexture DecomposeTransformMatrix
This CL handles adds handling of few more cases: * Small videos have bad matrix. We get small sizes likely because decoding errors * Shrink amount other than 1.0. This is best guess approach as there is no way knowing what shrink amount was used. * Empty matrix case (when either of scales is zero). Shouldn't happen outside of small size case. This CL also add fallback to visible_size if coded_size/visible_rect seem wrong or matrix was broken and adds DumpWithoutCrashing for that case. Bug: 1081695, 1086624, 1076564 Change-Id: Ife0b70bc85b9249fa2805df1db59733ac8cdbd53 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2216731 Commit-Queue: Vasiliy Telezhnikov <vasilyt@chromium.org> Reviewed-by:Jonathan Backer <backer@chromium.org> Cr-Commit-Position: refs/heads/master@{#772493}
Showing
Please register or sign in to comment