From 638123eeac3874577ca1454c3420b15dd4ccdbc0 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Mon, 17 Nov 2008 00:10:33 +0100 Subject: By Anders Holst: only record MPEG-4 I-frames to ap-file --- lib/dvb/pvrparse.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/dvb/pvrparse.cpp') diff --git a/lib/dvb/pvrparse.cpp b/lib/dvb/pvrparse.cpp index 35ba9091..dfc62249 100644 --- a/lib/dvb/pvrparse.cpp +++ b/lib/dvb/pvrparse.cpp @@ -370,7 +370,8 @@ int eMPEGStreamParserTS::processPacket(const unsigned char *pkt, off_t offset) eDebug("Sequence header but no valid PTS value."); } - if (pkt[3] == 0x09) /* MPEG4 AVC unit access delimiter */ + if (pkt[3] == 0x09 && /* MPEG4 AVC unit access delimiter */ + (pkt[4] >> 5) == 0) /* and I-frame */ { if (ptsvalid) { -- cgit v1.2.3