You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-09-16 08:36:51 +02: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 weight_sum = 0;
|
||||
int i, val = 0;
|
||||
PixelMVS *pixel_mvs = &mi_ctx->pixel_mvs[x + y * avf_out->width];
|
||||
PixelWeights *pixel_weights = &mi_ctx->pixel_weights[x + y * avf_out->width];
|
||||
PixelRefs *pixel_refs = &mi_ctx->pixel_refs[x + y * avf_out->width];
|
||||
PixelMVS *pixel_mvs = &mi_ctx->pixel_mvs[x + y * width];
|
||||
PixelWeights *pixel_weights = &mi_ctx->pixel_weights[x + y * width];
|
||||
PixelRefs *pixel_refs = &mi_ctx->pixel_refs[x + y * width];
|
||||
|
||||
for (i = 0; i < pixel_refs->nb; i++)
|
||||
weight_sum += pixel_weights->weights[i];
|
||||
|
Reference in New Issue
Block a user