aboutsummaryrefslogtreecommitdiff
path: root/video/mpegps_decoder.h
diff options
context:
space:
mode:
authorTorbjörn Andersson2018-06-26 19:16:28 +0200
committerThierry Crozat2018-11-04 22:33:22 +0100
commita5b5b68a1a1a5453b9aa8025e3a95cc10d0718d4 (patch)
treeff326b71177dbe1f9b165f77db99f401611cda65 /video/mpegps_decoder.h
parent1255e8de4db11e3bdfaa2461cc72be6a74daa16c (diff)
downloadscummvm-rg350-a5b5b68a1a1a5453b9aa8025e3a95cc10d0718d4.tar.gz
scummvm-rg350-a5b5b68a1a1a5453b9aa8025e3a95cc10d0718d4.tar.bz2
scummvm-rg350-a5b5b68a1a1a5453b9aa8025e3a95cc10d0718d4.zip
VIDEO: Use all video PTS's
Sometimes (only at the very start of a movie?) there will be a video packet that has a PTS but no frame to display. Save that PTS and use it for the next frame. This doesn't actually improve anything, as far as I can tell, but feels right.
Diffstat (limited to 'video/mpegps_decoder.h')
-rw-r--r--video/mpegps_decoder.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/mpegps_decoder.h b/video/mpegps_decoder.h
index 74167a714f..6111fe8b45 100644
--- a/video/mpegps_decoder.h
+++ b/video/mpegps_decoder.h
@@ -100,6 +100,7 @@ private:
private:
bool _endOfTrack;
int _curFrame;
+ uint32 _framePts;
Audio::Timestamp _nextFrameStartTime;
Graphics::Surface *_surface;