summaryrefslogtreecommitdiff
path: root/D145966.diff
blob: 2ecfaec047859b09fd8a813c47198ae60c12a047 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
@@ -780,12 +780,13 @@
   mDecodedFrames++;
   float decodeTime = (TimeStamp::Now() - aDecodeStart).ToMilliseconds();
   mAverangeDecodeTime =
       (mAverangeDecodeTime * (mDecodedFrames - 1) + decodeTime) /
       mDecodedFrames;
-  FFMPEG_LOG("  averange frame decode time %.2f ms decoded frames %d\n",
-             mAverangeDecodeTime, mDecodedFrames);
+  FFMPEG_LOG(
+      "  decode time %.2f ms averange decode time %.2f ms decoded frames %d\n",
+      decodeTime, mAverangeDecodeTime, mDecodedFrames);
 #if LIBAVCODEC_VERSION_MAJOR >= 58
   int frameDuration = mFrame->pkt_duration;
   if (frameDuration > 0 && frameDuration / 1000.0 < decodeTime) {
     mDecodedFramesLate++;
     FFMPEG_LOG(

bgstack15