aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/proresenc.c
diff options
context:
space:
mode:
authorBoris Maksalov <boris.maksalov@yandex.ru>2012-08-10 09:50:35 +0100
committerLuca Barbato <lu_zero@gentoo.org>2012-08-13 21:04:00 +0200
commitcee03436e6f1e3d4893841698e73caa92f2a53c9 (patch)
tree6a7ff368fff81c4e7fa13d4084dc25b1b79c2738 /libavcodec/proresenc.c
parentfb96c1c5fe6b0131a7229e8b89222192465bf298 (diff)
downloadffmpeg-cee03436e6f1e3d4893841698e73caa92f2a53c9.tar.gz
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.c12
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;
}
}