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

This commit is contained in:
Mike Jerris 2018-08-27 22:12:14 +00:00 committed by root
parent 6d6f217a61
commit 22d022ab4a
1 changed files with 6 additions and 1 deletions

View File

@ -1870,7 +1870,12 @@ static void load_config()
if (!strcasecmp(CODEC_MAPS[i], "H264")) {
profile->ctx.profile = FF_PROFILE_H264_BASELINE;
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
}
}