summaryrefslogtreecommitdiff
path: root/D146087.diff
diff options
context:
space:
mode:
Diffstat (limited to 'D146087.diff')
-rw-r--r--D146087.diff19
1 files changed, 19 insertions, 0 deletions
diff --git a/D146087.diff b/D146087.diff
new file mode 100644
index 0000000..d5dcf9d
--- /dev/null
+++ b/D146087.diff
@@ -0,0 +1,19 @@
+diff --git a/dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp b/dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp
+--- a/dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp
++++ b/dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp
+@@ -1164,12 +1164,12 @@
+ NS_ERROR_DOM_MEDIA_DECODE_ERR,
+ RESULT_DETAIL("Unable to get frame by vaExportSurfaceHandle()"));
+ }
+
+ MOZ_ASSERT(mTaskQueue->IsOnCurrentThread());
+- auto surface = mVideoFramePool->GetVideoFrameSurface(vaDesc, mCodecContext,
+- mFrame, mLib);
++ auto surface = mVideoFramePool->GetVideoFrameSurface(
++ vaDesc, mFrame->width, mFrame->height, mCodecContext, mFrame, mLib);
+ if (!surface) {
+ return MediaResult(NS_ERROR_DOM_MEDIA_DECODE_ERR,
+ RESULT_DETAIL("VAAPI dmabuf allocation error"));
+ }
+ surface->SetYUVColorSpace(GetFrameColorSpace());
+
bgstack15