The size of the block is fixed (8x8 plus padding). --- libavcodec/intrax8.c | 5 ++--- libavcodec/intrax8.h | 1 + 2 files changed, 3 insertions(+), 3 deletions(-)
Modified according to instructions. diff --git a/libavcodec/intrax8.c b/libavcodec/intrax8.c index 9da6b41f4..fae9bc8 100644 --- a/libavcodec/intrax8.c +++ b/libavcodec/intrax8.c @@ -328,12 +328,11 @@ static int x8_get_dc_rlf(IntraX8Context *const w, static int x8_setup_spatial_predictor(IntraX8Context *const w, const int chroma) { - MpegEncContext *const s = w->s; int range; int sum; int quant; - w->dsp.setup_spatial_compensation(w->dest[chroma], s->sc.edge_emu_buffer, + w->dsp.setup_spatial_compensation(w->dest[chroma], w->scratchpad, w->frame->linesize[chroma > 0], &range, &sum, w->edges); if (chroma) { @@ -698,7 +697,7 @@ static int x8_decode_intra_mb(IntraX8Context *const w, const int chroma) dsp_x8_put_solidcolor(w->predicted_dc, w->dest[chroma], w->frame->linesize[!!chroma]); } else { - w->dsp.spatial_compensation[w->orient](s->sc.edge_emu_buffer, + w->dsp.spatial_compensation[w->orient](w->scratchpad, w->dest[chroma], w->frame->linesize[!!chroma]); } diff --git a/libavcodec/intrax8.h b/libavcodec/intrax8.h index f087b9f..d268c24 100644 --- a/libavcodec/intrax8.h +++ b/libavcodec/intrax8.h @@ -51,6 +51,7 @@ typedef struct IntraX8Context { int divide_quant_dc_luma; int divide_quant_dc_chroma; uint8_t *dest[3]; + uint8_t scratchpad[42]; // answer to everything and size of the block // changed per block int edges; -- 2.7.3 _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel