提交 22d022ab authored 作者: Mike Jerris's avatar Mike Jerris 提交者: root

FS-11189: [mod_av] fix build on older libav

上级 6d6f217a
...@@ -1870,7 +1870,12 @@ static void load_config() ...@@ -1870,7 +1870,12 @@ static void load_config()
if (!strcasecmp(CODEC_MAPS[i], "H264")) { if (!strcasecmp(CODEC_MAPS[i], "H264")) {
profile->ctx.profile = FF_PROFILE_H264_BASELINE; profile->ctx.profile = FF_PROFILE_H264_BASELINE;
profile->ctx.level = 41; profile->ctx.level = 41;
profile->ctx.flags |= (CODEC_FLAG_LOOP_FILTER | AV_CODEC_FLAG_PSNR); #ifdef AV_CODEC_FLAG_PSNR
profile->ctx.flags |= AV_CODEC_FLAG_PSNR;
#endif
#ifdef CODEC_FLAG_LOOP_FILTER
profile->ctx.flags |= CODEC_FLAG_LOOP_FILTER;
#endif
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论