Correct crop size for av1 software encoder

When using surface crop size may be set to incorrect
value and cause errors when copying buffers.
To prevent that, encoder will set crop size to expected
image size.

Bug: b/279387842
Test: atest android.mediav2.cts.CodecEncoderSurfaceTest
(cherry picked from https://partner-android-review.googlesource.com/q/commit:b809f1038c21079acf84e3e85668ea7e8e211cf0)
Merged-In: I4631eb48f59fce19af4de0fb2be2ca0ec80ae8ae
Change-Id: I4631eb48f59fce19af4de0fb2be2ca0ec80ae8ae
1 file changed