提交 fa5d2994 编写于 作者: G Ganesh Ajjanagadde

avfilter/vsrc_mptestsrc: use lrint instead of floor hack

lrint is faster, and is more consistent across the codebase.
Reviewed-by: NMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: NGanesh Ajjanagadde <gajjanagadde@gmail.com>
上级 1bb7db21
......@@ -121,7 +121,7 @@ static void idct(uint8_t *dst, int dst_linesize, int src[64])
for (k = 0; k < 8; k++)
sum += c[k*8+i]*tmp[8*k+j];
dst[dst_linesize*i + j] = av_clip_uint8((int)floor(sum+0.5));
dst[dst_linesize*i + j] = av_clip_uint8(lrint(sum));
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册