mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Merge pull request #2913 from Tilka/fix_warning_fix
AVIDump: fix -Wsign-compare warning
This commit is contained in:
commit
d373dd372d
@ -480,12 +480,12 @@ void AVIDump::AddFrame(const u8* data, int width, int height)
|
|||||||
while (!error && got_packet)
|
while (!error && got_packet)
|
||||||
{
|
{
|
||||||
// Write the compressed frame in the media file.
|
// 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,
|
pkt.pts = av_rescale_q(pkt.pts,
|
||||||
s_stream->codec->time_base, s_stream->time_base);
|
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,
|
pkt.dts = av_rescale_q(pkt.dts,
|
||||||
s_stream->codec->time_base, s_stream->time_base);
|
s_stream->codec->time_base, s_stream->time_base);
|
||||||
|
Loading…
Reference in New Issue
Block a user