Fix typo: CODEC_FLAG2_SSIM is in flags2, not in flags.