From b9c2aaf3af14dbd61263785827b92c576132212c Mon Sep 17 00:00:00 2001 From: TangoCash Date: Tue, 31 Oct 2017 11:43:20 +0100 Subject: [PATCH] fix hevc 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 dc1d52fe7..16f909e89 100644 --- a/src/driver/record.cpp +++ b/src/driver/record.cpp @@ -205,7 +205,7 @@ record_error_msg_t CRecordInstance::Start(CZapitChannel * channel) CGenPsi psi; numpids = 0; if (allpids.PIDs.vpid != 0){ - psi.addPid(allpids.PIDs.vpid, recMovieInfo->VideoType == 1 ? EN_TYPE_AVC : recMovieInfo->VideoType == 2 ? EN_TYPE_HEVC : EN_TYPE_VIDEO, 0); + psi.addPid(allpids.PIDs.vpid, recMovieInfo->VideoType == CHANNEL_MPEG4 ? EN_TYPE_AVC : recMovieInfo->VideoType == CHANNEL_HEVC ? EN_TYPE_HEVC : EN_TYPE_VIDEO, 0); if (allpids.PIDs.pcrpid && (allpids.PIDs.pcrpid != allpids.PIDs.vpid)) { psi.addPid(allpids.PIDs.pcrpid, EN_TYPE_PCR, 0); apids[numpids++]=allpids.PIDs.pcrpid;