fix problem with subtitle durations
authorGood Guy <[email protected]>
Thu, 3 Nov 2016 17:47:38 +0000 (11:47 -0600)
committerGood Guy <[email protected]>
Thu, 3 Nov 2016 17:47:38 +0000 (11:47 -0600)
cinelerra-5.1/libzmpeg3/video/subtitle.C

index 659ade968d366616bfc3f71f55e929ba406d5bba..a8b390864490dfe97bb65177ee69663263a3c5d4 100644 (file)
@@ -481,8 +481,8 @@ decode(video_t *video)
     if( video->framenum > late_frame ) return -1; // way too late
   }
   if( video->framenum < start_frame ) return 0; // too early
-  if( video->framenum < stop_frame ) return 1;  // not too late
-  return 0;
+  if( video->framenum >= stop_frame ) return -1;  // too late
+  return 1;
 }
 
 void zvideo_t::