summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-01-14 10:39:07 +0000
committerCarl Hetherington <cth@carlh.net>2014-01-14 10:39:07 +0000
commit057400eb1718e8769592e34e07d90405eb95605f (patch)
tree282a856feca494b1571d0ee67e22763a2db122e6 /src/lib/ffmpeg_decoder.cc
parentee4362c939b5fe6bab598b59916478513b9d6779 (diff)
Scale subtitle times with frame rate change if they are part of a piece of video content.
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
-rw-r--r--src/lib/ffmpeg_decoder.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc
index b672b2c1f..a6f9a17c3 100644
--- a/src/lib/ffmpeg_decoder.cc
+++ b/src/lib/ffmpeg_decoder.cc
@@ -556,7 +556,7 @@ FFmpegDecoder::decode_subtitle_packet ()
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;
-
+
/* hence start time for this sub */
Time const from = (packet_time + (double (sub.start_display_time) / 1e3)) * TIME_HZ;
Time const to = (packet_time + (double (sub.end_display_time) / 1e3)) * TIME_HZ;