| Index: libavcodec/vp8.c
|
| diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c
|
| index 4728393d105a56b50172950925c884cf0796692a..b23dae4c09dd5106a3a79f7b6cb2937e8d9c7e1b 100644
|
| --- a/libavcodec/vp8.c
|
| +++ b/libavcodec/vp8.c
|
| @@ -124,7 +124,7 @@ static int update_dimensions(VP8Context *s, int width, int height)
|
| s->macroblocks_base = av_mallocz((s->mb_width+s->mb_height*2+1)*sizeof(*s->macroblocks));
|
| s->filter_strength = av_mallocz(s->mb_width*sizeof(*s->filter_strength));
|
| s->intra4x4_pred_mode_top = av_mallocz(s->mb_width*4);
|
| - s->top_nnz = av_mallocz(s->mb_width*sizeof(*s->top_nnz));
|
| + s->top_nnz = av_mallocz((s->mb_width+1)*sizeof(*s->top_nnz));
|
| s->top_border = av_mallocz((s->mb_width+1)*sizeof(*s->top_border));
|
|
|
| if (!s->macroblocks_base || !s->filter_strength || !s->intra4x4_pred_mode_top ||
|
|
|