saveotio: Use qIsNan rather than comparison

This commit is contained in:
Thomas Wilshaw
2021-12-10 17:34:51 +00:00
parent 516c5cb3b1
commit dcaf34c69d
+1 -1
View File
@@ -136,7 +136,7 @@ OTIO::Track *SaveOTIOTask::SerializeTrack(Track *track)
auto otio_clip = new OTIO::Clip(block->GetLabel().toStdString());
double rate = static_cast<ClipBlock*>(block)->connected_viewer()->GetVideoParams().frame_rate().toDouble();
if (rate == qSNaN()) {
if (qIsNaN(rate)) {
// We shouldn't ever get here, but catch without crashing if we ever do
goto fail;
}