Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AVIDump: fix -Wsign-compare warning #2913

Merged
merged 1 commit into from
Aug 27, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions Source/Core/VideoCommon/AVIDump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down