Fix best_dcp_frame_rate.
authorCarl Hetherington <cth@carlh.net>
Thu, 20 Jun 2013 20:27:18 +0000 (21:27 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 20 Jun 2013 20:27:18 +0000 (21:27 +0100)
src/lib/playlist.cc

index 9cc1789d135d5c38a66e416b4c90888421d7142e..995067b66ee7bf7133f6d0b025c70f381869dd1e 100644 (file)
@@ -232,7 +232,7 @@ Playlist::best_dcp_frame_rate () const
        list<FrameRateCandidate>::iterator i = candidates.begin();
        while (i != candidates.end()) {
 
-               float this_error = std::numeric_limits<float>::max ();
+               float this_error = 0;
                for (ContentList::const_iterator j = _content.begin(); j != _content.end(); ++j) {
                        shared_ptr<VideoContent> vc = dynamic_pointer_cast<VideoContent> (*j);
                        if (!vc) {