diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-05-24 17:34:22 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-05-24 17:34:22 +0000 |
commit | af125739382370541139df1eadf30eac64b95a0a (patch) | |
tree | 6b82057e111970e7456e1c0b6a886118561ab07f | |
parent | bca59d7745e4fa4ed5444da959d6b487cd14e994 (diff) | |
download | ffmpeg-af125739382370541139df1eadf30eac64b95a0a.tar.gz |
lavfi/blend: fix SW/SH calculation
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavfilter/vf_blend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_blend.c b/libavfilter/vf_blend.c index 6b46996ffe..cb3d1c1ed9 100644 --- a/libavfilter/vf_blend.c +++ b/libavfilter/vf_blend.c @@ -383,8 +383,8 @@ static void blend_frame(AVFilterContext *ctx, param->values[VAR_T] = dst_buf->pts == AV_NOPTS_VALUE ? NAN : dst_buf->pts * av_q2d(inlink->time_base); param->values[VAR_W] = outw; param->values[VAR_H] = outh; - param->values[VAR_SW] = outw / dst_buf->width; - param->values[VAR_SH] = outh / dst_buf->height; + param->values[VAR_SW] = outw / (double)dst_buf->width; + param->values[VAR_SH] = outh / (double)dst_buf->height; param->blend(top, top_buf->linesize[plane], bottom, bottom_buf->linesize[plane], dst, dst_buf->linesize[plane], outw, outh, param); |