aboutsummaryrefslogtreecommitdiff
path: root/lib/dvb/pvrparse.cpp
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2008-11-17 00:10:33 +0100
committerFelix Domke <tmbinc@elitedvb.net>2008-11-17 00:10:33 +0100
commit638123eeac3874577ca1454c3420b15dd4ccdbc0 (patch)
tree2b694be975db3c7e15e942df9bb0fec1def8bb97 /lib/dvb/pvrparse.cpp
parent58ee3c3a218a0aa5d45e9c465eb9759375b4129c (diff)
downloadenigma2-638123eeac3874577ca1454c3420b15dd4ccdbc0.tar.gz
enigma2-638123eeac3874577ca1454c3420b15dd4ccdbc0.zip
By Anders Holst: only record MPEG-4 I-frames to ap-file
Diffstat (limited to 'lib/dvb/pvrparse.cpp')
-rw-r--r--lib/dvb/pvrparse.cpp3
1 files changed, 2 insertions, 1 deletions
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)
{