Fix incorrect assert().
authorCarl Hetherington <cth@carlh.net>
Thu, 24 Jan 2013 15:15:16 +0000 (15:15 +0000)
committerCarl Hetherington <cth@carlh.net>
Thu, 24 Jan 2013 15:15:16 +0000 (15:15 +0000)
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)