添加对mac的支持

This commit is contained in:
xiongziliang
2017-05-11 18:03:06 +08:00
parent 1a6840d3be
commit a4233bdeb8
5 changed files with 42 additions and 10 deletions

View File

@@ -30,7 +30,7 @@ class H264Decoder
public:
H264Decoder(void){
avcodec_register_all();
AVCodec *pCodec = avcodec_find_decoder(CODEC_ID_H264);
AVCodec *pCodec = avcodec_find_decoder(AV_CODEC_ID_H264);
if (!pCodec) {
throw std::runtime_error("未找到H264解码器");
}