Hi, On Fri, Oct 26, 2012 at 5:50 PM, Mans Rullgard <m...@mansr.com> wrote: > Indexing across array boundaries is not allowed by C99. > > Signed-off-by: Mans Rullgard <m...@mansr.com> > --- > libavcodec/vp8.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c > index 2766c9e..d9902c4 100644 > --- a/libavcodec/vp8.c > +++ b/libavcodec/vp8.c > @@ -1964,7 +1964,8 @@ static int vp8_decode_frame(AVCodecContext *avctx, void > *data, int *data_size, > // top edge of 127 for intra prediction > if (!(avctx->flags & CODEC_FLAG_EMU_EDGE)) { > s->top_border[0][15] = s->top_border[0][23] = 127; > - memset(s->top_border[1]-1, 127, > s->mb_width*sizeof(*s->top_border)+1); > + s->top_border[0][31] = 127; > + memset(s->top_border[1], 127, s->mb_width*sizeof(*s->top_border)); > }
OK. Ronald _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel