From dc556d3c9b5d626cd45f966519a77175fea79033 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 23 Sep 2023 13:33:21 -0400 Subject: [PATCH] Try to fix Windows build --- app/streaming/video/ffmpeg.cpp | 2 +- app/streaming/video/ffmpeg.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/streaming/video/ffmpeg.cpp b/app/streaming/video/ffmpeg.cpp index 558dcd22..77ae925a 100644 --- a/app/streaming/video/ffmpeg.cpp +++ b/app/streaming/video/ffmpeg.cpp @@ -604,7 +604,7 @@ void FFmpegVideoDecoder::addVideoStats(VIDEO_STATS& src, VIDEO_STATS& dst) dst.renderedFps = (float)dst.renderedFrames / ((float)(now - dst.measurementStartTimestamp) / 1000); } -void FFmpegVideoDecoder::stringifyVideoStats(VIDEO_STATS& stats, char* output, ssize_t length) +void FFmpegVideoDecoder::stringifyVideoStats(VIDEO_STATS& stats, char* output, int length) { int offset = 0; const char* codecString; diff --git a/app/streaming/video/ffmpeg.h b/app/streaming/video/ffmpeg.h index fdd45b15..03f5b281 100644 --- a/app/streaming/video/ffmpeg.h +++ b/app/streaming/video/ffmpeg.h @@ -32,7 +32,7 @@ public: private: bool completeInitialization(const AVCodec* decoder, PDECODER_PARAMETERS params, bool testFrame, bool useAlternateFrontend); - void stringifyVideoStats(VIDEO_STATS& stats, char* output, ssize_t length); + void stringifyVideoStats(VIDEO_STATS& stats, char* output, int length); void logVideoStats(VIDEO_STATS& stats, const char* title);