X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fivi_common.c;h=e261dca418dce20d4a4c1aa0e4e1dcde677320ea;hb=7fd9d49ba7fa57629592b1f7064cb12d96984a14;hp=17d8af4102a5678a8aa411a93310160b4b7de973;hpb=9aa630a520eb985dc6eefa5bc0f96e8269265ecb;p=ffmpeg diff --git a/libavcodec/ivi_common.c b/libavcodec/ivi_common.c index 17d8af4102a..e261dca418d 100644 --- a/libavcodec/ivi_common.c +++ b/libavcodec/ivi_common.c @@ -650,7 +650,7 @@ void ff_ivi_output_plane(IVIPlaneDesc *plane, uint8_t *dst, int dst_pitch) * @param[in] avctx ptr to the AVCodecContext * @return result code: 0 = OK, -1 = error */ -static int decode_band(IVI45DecContext *ctx, int plane_num, +static int decode_band(IVI45DecContext *ctx, IVIBandDesc *band, AVCodecContext *avctx) { int result, i, t, idx1, idx2, pos; @@ -791,7 +791,7 @@ int ff_ivi_decode_frame(AVCodecContext *avctx, void *data, int *data_size, ctx->buf_invalid[ctx->dst_buf] = 1; for (p = 0; p < 3; p++) { for (b = 0; b < ctx->planes[p].num_bands; b++) { - result = decode_band(ctx, p, &ctx->planes[p].bands[b], avctx); + result = decode_band(ctx, &ctx->planes[p].bands[b], avctx); if (result) { av_log(avctx, AV_LOG_ERROR, "Error while decoding band: %d, plane: %d\n", b, p);