Merge master.
[dcpomatic.git] / src / lib / ffmpeg_decoder.cc
index a2b3e5d3bfdead6a8fe07a44489c87440bc228ab..8742c48ecd6360021bcb309636ba376a300ccc28 100644 (file)
@@ -561,7 +561,7 @@ FFmpegDecoder::decode_subtitle_packet ()
        /* Subtitle PTS in seconds (within the source, not taking into account any of the
           source that we may have chopped off for the DCP)
        */
-       double const packet_time = (static_cast<double> (sub.pts ) / AV_TIME_BASE) + _video_pts_offset;
+       double const packet_time = (static_cast<double> (sub.pts ) / AV_TIME_BASE) + _pts_offset;
        
        /* hence start time for this sub */
        ContentTime const from = (packet_time + (double (sub.start_display_time) / 1e3)) * TIME_HZ;