aboutsummaryrefslogtreecommitdiff
path: root/image/codecs
diff options
context:
space:
mode:
Diffstat (limited to 'image/codecs')
-rw-r--r--image/codecs/mpeg.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/image/codecs/mpeg.cpp b/image/codecs/mpeg.cpp
index beb042dbf1..bb40fe615d 100644
--- a/image/codecs/mpeg.cpp
+++ b/image/codecs/mpeg.cpp
@@ -78,8 +78,13 @@ bool MPEGDecoder::decodePacket(Common::SeekableReadStream &packet, uint32 &frame
if (_mpegInfo->display_fbuf) {
foundFrame = true;
const mpeg2_sequence_t *sequence = _mpegInfo->sequence;
+ const mpeg2_picture_t *picture = _mpegInfo->display_picture;
framePeriod += sequence->frame_period;
+ if (picture->nb_fields > 2) {
+ framePeriod += (sequence->frame_period / 2);
+
+ }
if (!dst) {
// If no destination is specified, use our internal storage