From 39ced2a2d795738b60cb82b85da02595e63878d2 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Fri, 21 Aug 2015 10:26:35 +0200 Subject: [PATCH] AVIDump: fix -Wsign-compare warning Cast the other side of the comparison to avoid a warning with newer ffmpeg/libav versions (cb3591e69738c808d26ba15eb02414fedfcd91cc). --- Source/Core/VideoCommon/AVIDump.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/VideoCommon/AVIDump.cpp b/Source/Core/VideoCommon/AVIDump.cpp index d3f2581920..0424082709 100644 --- a/Source/Core/VideoCommon/AVIDump.cpp +++ b/Source/Core/VideoCommon/AVIDump.cpp @@ -480,12 +480,12 @@ void AVIDump::AddFrame(const u8* data, int width, int height) while (!error && got_packet) { // Write the compressed frame in the media file. - if (static_cast(pkt.pts) != AV_NOPTS_VALUE) + if (pkt.pts != (s64)AV_NOPTS_VALUE) { pkt.pts = av_rescale_q(pkt.pts, s_stream->codec->time_base, s_stream->time_base); } - if (static_cast(pkt.dts) != AV_NOPTS_VALUE) + if (pkt.dts != (s64)AV_NOPTS_VALUE) { pkt.dts = av_rescale_q(pkt.dts, s_stream->codec->time_base, s_stream->time_base);