Commit af125739 authored by Paul B Mahol's avatar Paul B Mahol

lavfi/blend: fix SW/SH calculation

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent bca59d77
...@@ -383,8 +383,8 @@ static void blend_frame(AVFilterContext *ctx, ...@@ -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_T] = dst_buf->pts == AV_NOPTS_VALUE ? NAN : dst_buf->pts * av_q2d(inlink->time_base);
param->values[VAR_W] = outw; param->values[VAR_W] = outw;
param->values[VAR_H] = outh; param->values[VAR_H] = outh;
param->values[VAR_SW] = outw / dst_buf->width; param->values[VAR_SW] = outw / (double)dst_buf->width;
param->values[VAR_SH] = outh / dst_buf->height; param->values[VAR_SH] = outh / (double)dst_buf->height;
param->blend(top, top_buf->linesize[plane], param->blend(top, top_buf->linesize[plane],
bottom, bottom_buf->linesize[plane], bottom, bottom_buf->linesize[plane],
dst, dst_buf->linesize[plane], outw, outh, param); dst, dst_buf->linesize[plane], outw, outh, param);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment