Fix incorrect assert().
[dcpomatic.git] / src / lib / subtitle.cc
index 8a9998d6a9394501c7a5b489ae2bef755a86a099..b4ac14285714b1e085a9fffcee5d80daf1906fc9 100644 (file)
@@ -34,7 +34,7 @@ using namespace boost;
  */
 TimedSubtitle::TimedSubtitle (AVSubtitle const & sub)
 {
-       assert (sub.rects > 0);
+       assert (sub.num_rects > 0);
        
        /* Subtitle PTS in seconds (within the source, not taking into account any of the
           source that we may have chopped off for the DCP)