[x264-devel] commit: Fix overread of scratch buffer (Jason Garrett-Glaser )
git version control
git at videolan.org
Tue Feb 23 11:05:34 CET 2010
x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Mon Feb 22 13:04:47 2010 -0800| [f0da96145cb068ade0f0232d0682137c9065929f] | committer: Jason Garrett-Glaser
Fix overread of scratch buffer
Could cause crashes on non-mod16 frames.
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=f0da96145cb068ade0f0232d0682137c9065929f
---
encoder/encoder.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/encoder/encoder.c b/encoder/encoder.c
index df62389..89bf457 100644
--- a/encoder/encoder.c
+++ b/encoder/encoder.c
@@ -1055,7 +1055,7 @@ x264_t *x264_encoder_open( x264_param_t *param )
/* Allocate scratch buffer */
for( i = 0; i < h->param.i_threads + !!h->param.i_sync_lookahead; i++ )
{
- int buf_hpel = (h->param.i_width+48) * sizeof(int16_t);
+ int buf_hpel = (h->fdec->i_width[0]+48) * sizeof(int16_t);
int buf_ssim = h->param.analyse.b_ssim * 8 * (h->param.i_width/4+3) * sizeof(int);
int me_range = X264_MIN(h->param.analyse.i_me_range, h->param.analyse.i_mv_range);
int buf_tesa = (h->param.analyse.i_me_method >= X264_ME_ESA) *
More information about the x264-devel
mailing list