AVIDump: fix -Wsign-compare warning

Cast the other side of the comparison to avoid a warning with newer
ffmpeg/libav versions (cb3591e69738c808d26ba15eb02414fedfcd91cc).
This commit is contained in:
Tillmann Karras 2015-08-21 10:26:35 +02:00
parent 6cb87a9227
commit 39ced2a2d7
1 changed files with 2 additions and 2 deletions

View File

@ -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);