c2-codecs: handle stride correctly

Original change:
https://android-review.googlesource.com/c/device/generic/goldfish-opengl/+/1713931

The decoded data should be properly copied to the
client side, respecting the stride.

Bug: 188774534

Test:
atest android.mediav2.cts.CodecDecoderTest#testSimpleDecode
atest android.mediav2.cts.CodecDecoderTest#testReconfigure

Change-Id: I5a1dcc1cc085d2b04a8f4a57092fc0a0c9d2671c
Merged-In: I5a1dcc1cc085d2b04a8f4a57092fc0a0c9d2671c
2 files changed