diff options
author | Boris Maksalov <boris.maksalov@yandex.ru> | 2012-08-10 12:50:35 +0400 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2012-08-13 23:04:00 +0400 |
commit | cee03436e6f1e3d4893841698e73caa92f2a53c9 (patch) | |
tree | 6a7ff368fff81c4e7fa13d4084dc25b1b79c2738 /libavcodec/proresenc.c | |
parent | fb96c1c5fe6b0131a7229e8b89222192465bf298 (diff) |
proresenc: use the edge emulation buffer
Prevents reading past the end of frame buffer.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec/proresenc.c')
-rw-r--r-- | libavcodec/proresenc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/proresenc.c b/libavcodec/proresenc.c index 374ff45c70..40644bb3b1 100644 --- a/libavcodec/proresenc.c +++ b/libavcodec/proresenc.c @@ -251,24 +251,24 @@ static void get_slice_data(ProresContext *ctx, const uint16_t *src, ctx->dsp.fdct(esrc, elinesize, blocks); blocks += 64; if (blocks_per_mb > 2) { - ctx->dsp.fdct(src + 8, linesize, blocks); + ctx->dsp.fdct(esrc + 8, elinesize, blocks); blocks += 64; } - ctx->dsp.fdct(src + linesize * 4, linesize, blocks); + ctx->dsp.fdct(esrc + elinesize * 4, elinesize, blocks); blocks += 64; if (blocks_per_mb > 2) { - ctx->dsp.fdct(src + linesize * 4 + 8, linesize, blocks); + ctx->dsp.fdct(esrc + elinesize * 4 + 8, elinesize, blocks); blocks += 64; } } else { ctx->dsp.fdct(esrc, elinesize, blocks); blocks += 64; - ctx->dsp.fdct(src + linesize * 4, linesize, blocks); + ctx->dsp.fdct(esrc + elinesize * 4, elinesize, blocks); blocks += 64; if (blocks_per_mb > 2) { - ctx->dsp.fdct(src + 8, linesize, blocks); + ctx->dsp.fdct(esrc + 8, elinesize, blocks); blocks += 64; - ctx->dsp.fdct(src + linesize * 4 + 8, linesize, blocks); + ctx->dsp.fdct(esrc + elinesize * 4 + 8, elinesize, blocks); blocks += 64; } } |