mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-05 22:40:09 +01:00
libavfilter/vf_minterpolate: Use local variable in array
Signed-off-by: Zsolt Vadasz <zsolt_vadasz@protonmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Michael Niedermayer
parent
5d7e4b7496
commit
173988aa0c
@@ -918,9 +918,9 @@ static void set_frame_data(MIContext *mi_ctx, int alpha, AVFrame *avf_out)
|
|||||||
int x_mv, y_mv;
|
int x_mv, y_mv;
|
||||||
int weight_sum = 0;
|
int weight_sum = 0;
|
||||||
int i, val = 0;
|
int i, val = 0;
|
||||||
PixelMVS *pixel_mvs = &mi_ctx->pixel_mvs[x + y * avf_out->width];
|
PixelMVS *pixel_mvs = &mi_ctx->pixel_mvs[x + y * width];
|
||||||
PixelWeights *pixel_weights = &mi_ctx->pixel_weights[x + y * avf_out->width];
|
PixelWeights *pixel_weights = &mi_ctx->pixel_weights[x + y * width];
|
||||||
PixelRefs *pixel_refs = &mi_ctx->pixel_refs[x + y * avf_out->width];
|
PixelRefs *pixel_refs = &mi_ctx->pixel_refs[x + y * width];
|
||||||
|
|
||||||
for (i = 0; i < pixel_refs->nb; i++)
|
for (i = 0; i < pixel_refs->nb; i++)
|
||||||
weight_sum += pixel_weights->weights[i];
|
weight_sum += pixel_weights->weights[i];
|
||||||
|
|||||||
Reference in New Issue
Block a user