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;