Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Jan 18, 2017
1 parent 1c8c79f commit faddc39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Distortion/Distortion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1701,10 +1701,10 @@ DistortionPlugin::getDistortionModel(const OfxRectI& format, const OfxPointD& re
break;
}
case eDistortionModelPFBarrel: {
double par = 1.;
if (_srcClip) {
par = _srcClip->getPixelAspectRatio();
}
//double par = 1.;
//if (_srcClip) {
// par = _srcClip->getPixelAspectRatio();
//}
double c3 = _pfC3->getValueAtTime(time);
double c5 = _pfC5->getValueAtTime(time);
double xp, yp;
Expand Down
2 changes: 1 addition & 1 deletion Reformat/Reformat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ ReformatPlugin::getOutputFormat(const double time,

return;
}
OfxRectD boxRod = { 0., 0., boxSize.x * boxPAR, boxSize.y};
OfxRectD boxRod = { 0., 0., (double)boxSize.x * boxPAR, (double)boxSize.y};
#ifdef OFX_EXTENSIONS_NATRON
OfxRectD srcRod;
OfxRectI srcFormat;
Expand Down

0 comments on commit faddc39

Please sign in to comment.