From ad1a626844b58409537f890b08090faf3de4cf67 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Mon, 12 Aug 2013 15:40:40 +0400 Subject: [PATCH] driver/record.cpp: check if pcr pid is not 0 before adding to record --- src/driver/record.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/record.cpp b/src/driver/record.cpp index d6bfd4398..7b6dff7ee 100644 --- a/src/driver/record.cpp +++ b/src/driver/record.cpp @@ -164,7 +164,7 @@ record_error_msg_t CRecordInstance::Start(CZapitChannel * channel) numpids = 0; if (allpids.PIDs.vpid != 0){ psi.addPid(allpids.PIDs.vpid, recMovieInfo->VideoType ? EN_TYPE_AVC : EN_TYPE_VIDEO, 0); - if(allpids.PIDs.pcrpid != allpids.PIDs.vpid){ + if (allpids.PIDs.pcrpid && (allpids.PIDs.pcrpid != allpids.PIDs.vpid)) { psi.addPid(allpids.PIDs.pcrpid, EN_TYPE_PCR, 0); apids[numpids++]=allpids.PIDs.pcrpid; }