зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1087810 - Use GMPVideoi420Frame dimensions as picture region in EMEH264Decoder instead of assuming the size of frames is always the same as reported in the container. r=edwin
This commit is contained in:
Родитель
26c7fc43eb
Коммит
ee875aa417
|
@ -156,15 +156,16 @@ EMEH264Decoder::Decoded(GMPVideoi420Frame* aDecodedFrame)
|
|||
b.mPlanes[2].mOffset = 0;
|
||||
b.mPlanes[2].mSkip = 0;
|
||||
|
||||
gfx::IntRect pictureRegion(0, 0, width, height);
|
||||
VideoData *v = VideoData::Create(mVideoInfo,
|
||||
mImageContainer,
|
||||
mLastStreamOffset,
|
||||
aDecodedFrame->Timestamp(),
|
||||
aDecodedFrame->Duration(),
|
||||
b,
|
||||
false,
|
||||
-1,
|
||||
ToIntRect(mPictureRegion));
|
||||
mImageContainer,
|
||||
mLastStreamOffset,
|
||||
aDecodedFrame->Timestamp(),
|
||||
aDecodedFrame->Duration(),
|
||||
b,
|
||||
false,
|
||||
-1,
|
||||
pictureRegion);
|
||||
aDecodedFrame->Destroy();
|
||||
mCallback->Output(v);
|
||||
}
|
||||
|
@ -261,7 +262,6 @@ EMEH264Decoder::GmpInit()
|
|||
|
||||
mVideoInfo.mDisplay = nsIntSize(mConfig.display_width, mConfig.display_height);
|
||||
mVideoInfo.mHasVideo = true;
|
||||
mPictureRegion = nsIntRect(0, 0, mConfig.display_width, mConfig.display_height);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -99,7 +99,6 @@ private:
|
|||
GMPVideoHost* mHost;
|
||||
|
||||
VideoInfo mVideoInfo;
|
||||
nsIntRect mPictureRegion;
|
||||
const mp4_demuxer::VideoDecoderConfig& mConfig;
|
||||
nsRefPtr<layers::ImageContainer> mImageContainer;
|
||||
nsRefPtr<MediaTaskQueue> mTaskQueue;
|
||||
|
|
Загрузка…
Ссылка в новой задаче