summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorflacs <tilkax@gmail.com>2015-08-27 23:50:34 +0200
committerflacs <tilkax@gmail.com>2015-08-27 23:50:34 +0200
commitd373dd372d74d9c35fdb5abf26aaf0fdf609cda0 (patch)
treeeaf86b6c62419db62552fc173d027584b76e5bc9
parentd9b18862f386234c491832c8f42ddb046a585d2d (diff)
parent39ced2a2d795738b60cb82b85da02595e63878d2 (diff)
Merge pull request #2913 from Tilka/fix_warning_fix
AVIDump: fix -Wsign-compare warning
-rw-r--r--Source/Core/VideoCommon/AVIDump.cpp4
1 files 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<u64>(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<u64>(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);