X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fproresenc_kostya.c;h=7755d71c8e11cfe7a4bd5699f7d216f03dc9ba9e;hb=2f48dff4550e8224c7aae03525df273aaebce171;hp=b5339c6ce17069ee09f7807866b6604861c8ab38;hpb=7e944159c63c4d4504cf76f90bb668519c3109af;p=ffmpeg diff --git a/libavcodec/proresenc_kostya.c b/libavcodec/proresenc_kostya.c index b5339c6ce17..7755d71c8e1 100644 --- a/libavcodec/proresenc_kostya.c +++ b/libavcodec/proresenc_kostya.c @@ -726,7 +726,6 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, int sizes[4] = { 0 }; int slice_hdr_size = 2 + 2 * (ctx->num_planes - 1); int frame_size, picture_size, slice_size; - int mbs_per_slice = ctx->mbs_per_slice; int pkt_size, ret; *avctx->coded_frame = *pic; @@ -792,7 +791,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, } for (y = 0; y < ctx->mb_height; y++) { - mbs_per_slice = ctx->mbs_per_slice; + int mbs_per_slice = ctx->mbs_per_slice; for (x = mb = 0; x < ctx->mb_width; x += mbs_per_slice, mb++) { q = ctx->force_quant ? ctx->force_quant : ctx->slice_q[mb + y * ctx->slices_width];