By Anders Holst: only record MPEG-4 I-frames to ap-file
authorFelix Domke <tmbinc@elitedvb.net>
Sun, 16 Nov 2008 23:10:33 +0000 (00:10 +0100)
committerFelix Domke <tmbinc@elitedvb.net>
Sun, 16 Nov 2008 23:10:33 +0000 (00:10 +0100)
lib/dvb/pvrparse.cpp

index 35ba909..dfc6224 100644 (file)
@@ -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)
                        {