projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
145d1cf
)
Add comment.
author
Carl Hetherington
<cth@carlh.net>
Fri, 10 May 2013 20:49:39 +0000
(21:49 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 10 May 2013 20:49:39 +0000
(21:49 +0100)
src/lib/ffmpeg_decoder.cc
patch
|
blob
|
history
diff --git
a/src/lib/ffmpeg_decoder.cc
b/src/lib/ffmpeg_decoder.cc
index ef7c4487d010ee9543d40c030713b35f836abd1b..b857860bde32c730cdf581436c1c27902ecf507e 100644
(file)
--- a/
src/lib/ffmpeg_decoder.cc
+++ b/
src/lib/ffmpeg_decoder.cc
@@
-616,6
+616,9
@@
FFmpegDecoder::decode_video_packet ()
for (list<shared_ptr<Image> >::iterator i = images.begin(); i != images.end(); ++i) {
int64_t const bet = av_frame_get_best_effort_timestamp (_frame);
if (bet != AV_NOPTS_VALUE) {
+ /* XXX: may need to insert extra frames / remove frames here ...
+ (as per old Matcher)
+ */
emit_video (*i, false, bet * av_q2d (_format_context->streams[_video_stream]->time_base));
} else {
_film->log()->log ("Dropping frame without PTS");
@@
-623,6
+626,3
@@
FFmpegDecoder::decode_video_packet ()
}
}
}
-
-
-