record.cpp: align CODEC_ID defines to current ffmpeg code (thx to flk)

Origin commit data
------------------
Commit: bab181ab5b
Author: vanhofen <vanhofen@gmx.de>
Date: 2015-10-21 (Wed, 21 Oct 2015)

Origin message was:
------------------
- record.cpp: align CODEC_ID defines to current ffmpeg code (thx to flk)
This commit is contained in:
vanhofen
2015-10-21 11:52:38 +02:00
parent ad6e938a09
commit f8220aae33

View File

@@ -1905,16 +1905,16 @@ void CStreamRec::FillMovieInfo(CZapitChannel * channel, APIDList & apid_list)
desc += title->value;
}
switch(codec->codec_id) {
case CODEC_ID_AC3:
case AV_CODEC_ID_AC3:
audio_pids.atype = 1;
break;
case CODEC_ID_AAC:
case AV_CODEC_ID_AAC:
audio_pids.atype = 5;
break;
case CODEC_ID_EAC3:
case AV_CODEC_ID_EAC3:
audio_pids.atype = 7;
break;
case CODEC_ID_MP2:
case AV_CODEC_ID_MP2:
default:
audio_pids.atype = 0;
break;
@@ -1928,7 +1928,7 @@ void CStreamRec::FillMovieInfo(CZapitChannel * channel, APIDList & apid_list)
} else if (codec->codec_type == AVMEDIA_TYPE_VIDEO) {
recMovieInfo->epgVideoPid = st->id;
if (codec->codec_id == CODEC_ID_H264)
if (codec->codec_id == AV_CODEC_ID_H264)
recMovieInfo->VideoType = 1;
printf("%s: [VIDEO] 0x%x \n", __FUNCTION__, recMovieInfo->epgVideoPid);
}