projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddf79ca
)
Add a comment.
author
Carl Hetherington
<cth@carlh.net>
Tue, 22 Jul 2014 12:16:12 +0000
(13:16 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 22 Jul 2014 12:16:12 +0000
(13:16 +0100)
src/lib/ffmpeg_decoder.cc
patch
|
blob
|
history
diff --git
a/src/lib/ffmpeg_decoder.cc
b/src/lib/ffmpeg_decoder.cc
index dd47d306a6e54c0611e0abde6b6ab802cab4e77b..0390418be8693d1d0d84e8815c2fe922105eaf41 100644
(file)
--- a/
src/lib/ffmpeg_decoder.cc
+++ b/
src/lib/ffmpeg_decoder.cc
@@
-300,6
+300,8
@@
FFmpegDecoder::seek (ContentTime time, bool accurate)
time = ContentTime (0);
}
+ /* XXX: it seems debatable whether PTS should be used here... */
+
ContentTime const u = time - _pts_offset;
int64_t s = u.seconds() / av_q2d (_format_context->streams[_video_stream]->time_base);