diff options
author | Martin Stransky <stransky@redhat.com> | 2022-06-15 15:05:58 +0200 |
---|---|---|
committer | Martin Stransky <stransky@redhat.com> | 2022-06-15 15:05:58 +0200 |
commit | cd6ef2bb8265b2054523b97231f7e6daa98aaa31 (patch) | |
tree | 30d74cc616f909f7ccccb77ba8a3fe3f18d408b4 /mozilla-1758948.patch | |
parent | Added more VA-API and WebGL fixes (diff) | |
download | librewolf-fedora-ff-cd6ef2bb8265b2054523b97231f7e6daa98aaa31.tar.gz librewolf-fedora-ff-cd6ef2bb8265b2054523b97231f7e6daa98aaa31.tar.bz2 librewolf-fedora-ff-cd6ef2bb8265b2054523b97231f7e6daa98aaa31.zip |
Added fix for mozbz#1758948 (AV1 VA-API playback shuttering)
Diffstat (limited to 'mozilla-1758948.patch')
-rw-r--r-- | mozilla-1758948.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/mozilla-1758948.patch b/mozilla-1758948.patch new file mode 100644 index 0000000..7bc99e4 --- /dev/null +++ b/mozilla-1758948.patch @@ -0,0 +1,28 @@ +changeset: 623785:a6b80ee8c35f +tag: tip +parent: 623782:b1ed2fa50612 +user: stransky <stransky@redhat.com> +date: Wed Jun 15 14:54:19 2022 +0200 +files: dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp +description: +Bug 1758948 [FFmpeg] Use AVFrame::pts instead of AVFrame::pkt_pts on ffmpeg 4.x r?alwu + +AVFrame::pkt_pts has been deprecated and gives us wrong values for AV1 VA-API. Let's use AVFrame::pts instead on ffmpeg 4.x +as well as we use on ffmpeg 5.0 where AVFrame::pkt_pts is removed. + +Differential Revision: https://phabricator.services.mozilla.com/D149386 + + +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 +@@ -774,7 +774,7 @@ void FFmpegVideoDecoder<LIBAV_VER>::Init + #endif + + static int64_t GetFramePts(AVFrame* aFrame) { +-#if LIBAVCODEC_VERSION_MAJOR > 58 ++#if LIBAVCODEC_VERSION_MAJOR > 57 + return aFrame->pts; + #else + return aFrame->pkt_pts; + |