diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2015-08-21 10:26:35 +0200 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2015-08-21 10:26:35 +0200 |
| commit | 39ced2a2d795738b60cb82b85da02595e63878d2 (patch) | |
| tree | d6ba09711514fff5cae7eccf07adc2bb4b8f81a9 /Source/Core/VideoCommon/AVIDump.cpp | |
| parent | 6cb87a9227ff5a7b905a785c31dc44f7100aab0e (diff) | |
AVIDump: fix -Wsign-compare warning
Cast the other side of the comparison to avoid a warning with newer
ffmpeg/libav versions (cb3591e69738c808d26ba15eb02414fedfcd91cc).
Diffstat (limited to 'Source/Core/VideoCommon/AVIDump.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/AVIDump.cpp | 4 |
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); |
