|
|
61879d2 |
diff --git a/dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp b/dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp
|
|
|
61879d2 |
--- a/dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp
|
|
|
61879d2 |
+++ b/dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp
|
|
|
61879d2 |
@@ -780,12 +780,13 @@
|
|
|
61879d2 |
mDecodedFrames++;
|
|
|
61879d2 |
float decodeTime = (TimeStamp::Now() - aDecodeStart).ToMilliseconds();
|
|
|
61879d2 |
mAverangeDecodeTime =
|
|
|
61879d2 |
(mAverangeDecodeTime * (mDecodedFrames - 1) + decodeTime) /
|
|
|
61879d2 |
mDecodedFrames;
|
|
|
61879d2 |
- FFMPEG_LOG(" averange frame decode time %.2f ms decoded frames %d\n",
|
|
|
61879d2 |
- mAverangeDecodeTime, mDecodedFrames);
|
|
|
61879d2 |
+ FFMPEG_LOG(
|
|
|
61879d2 |
+ " decode time %.2f ms averange decode time %.2f ms decoded frames %d\n",
|
|
|
61879d2 |
+ decodeTime, mAverangeDecodeTime, mDecodedFrames);
|
|
|
61879d2 |
#if LIBAVCODEC_VERSION_MAJOR >= 58
|
|
|
61879d2 |
int frameDuration = mFrame->pkt_duration;
|
|
|
61879d2 |
if (frameDuration > 0 && frameDuration / 1000.0 < decodeTime) {
|
|
|
61879d2 |
mDecodedFramesLate++;
|
|
|
61879d2 |
FFMPEG_LOG(
|
|
|
61879d2 |
|