Bug 1347439 - part 4: use picture instead of display size to construct Image. r?jya
Cherry-picked from
bug 1344649 part 1 for
bug 1336431
MozReview-Commit-ID: BI76zqogB35
--- a/dom/media/platforms/android/RemoteDataDecoder.cpp
+++ b/dom/media/platforms/android/RemoteDataDecoder.cpp
@@ -173,17 +173,17 @@ public:
bool isEOS = !!(flags & MediaCodec::BUFFER_FLAG_END_OF_STREAM);
int64_t durationUs = 0;
if (!mDecoder->mInputDurations.Find(presentationTimeUs, durationUs) && !isEOS) {
return;
}
if (size > 0) {
RefPtr<layers::Image> img = new SurfaceTextureImage(
- mDecoder->mSurfaceTexture.get(), mDecoder->mConfig.mDisplay,
+ mDecoder->mSurfaceTexture.get(), mDecoder->mConfig.mImage,
gl::OriginPos::BottomLeft);
RefPtr<VideoData> v = VideoData::CreateFromImage(
mDecoder->mConfig, offset, presentationTimeUs, durationUs,
img, !!(flags & MediaCodec::BUFFER_FLAG_SYNC_FRAME),
presentationTimeUs,
gfx::IntRect(0, 0, mDecoder->mConfig.mDisplay.width,
mDecoder->mConfig.mDisplay.height));