From d255e7c6f9e1aa611a661f1456cc9b85453aa690 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 2 Jan 2008 12:09:14 +0000 Subject: [PATCH] Another fix for revision 3538: Add the video frame type flags (I/P/B) again. --- src/input/r_ogm.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/input/r_ogm.cpp b/src/input/r_ogm.cpp index e6c7c9cf3..4bbaaa54d 100644 --- a/src/input/r_ogm.cpp +++ b/src/input/r_ogm.cpp @@ -965,7 +965,9 @@ ogm_reader_c::process_page(ogg_page *og) { pos -= dmx->first_granulepos; memory_c *mem = new memory_c(&op.packet[duration_len + 1], op.bytes - 1 - duration_len, false); - PTZR(dmx->ptzr)->process(new packet_t(mem, pos * dmx->default_duration, (int64_t)duration * dmx->default_duration)); + PTZR(dmx->ptzr)->process(new packet_t(mem, pos * dmx->default_duration, (int64_t)duration * dmx->default_duration, + *op.packet & PACKET_IS_SYNCPOINT ? VFT_IFRAME : VFT_PFRAMEAUTOMATIC)); + dmx->units_processed += duration; } else if (dmx->stype == OGM_STREAM_TYPE_S_TEXT) {