Merge master into direct-mxf.
[dcpomatic.git] / src / lib / subtitle.cc
index 3754e5acf012c9a8dfe921fab46bb02440f397ef..bd5f0c87969cc76b473c4af506c0c88e913ec235 100644 (file)
@@ -35,7 +35,7 @@ using libdcp::Size;
  */
 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)