Clément Bœsch <[email protected]> writes: > From: Clément Bœsch <[email protected]> > > libavcodec/dv.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/libavcodec/dv.c b/libavcodec/dv.c > index d6c49c8..f426d73 100644 > --- a/libavcodec/dv.c > +++ b/libavcodec/dv.c > @@ -476,8 +476,8 @@ static int dv_decode_video_segment(AVCodecContext *avctx, > void *arg) > GetBitContext gb; > BlockInfo mb_data[5 * DV_MAX_BPM], *mb, *mb1; > LOCAL_ALIGNED_16(DCTELEM, sblock, [5*DV_MAX_BPM], [64]); > - LOCAL_ALIGNED_16(uint8_t, mb_bit_buffer, [80 + 4]); /* allow some slack > */ > - LOCAL_ALIGNED_16(uint8_t, vs_bit_buffer, [5 * 80 + 4]); /* allow some > slack */ > + LOCAL_ALIGNED_16(uint8_t, mb_bit_buffer, [80 + 4]) = {0}; /* allow > some slack */ > + LOCAL_ALIGNED_16(uint8_t, vs_bit_buffer, [5 * 80 + 4]) = {0}; /* allow > some slack */ > const int log2_blocksize = 3-s->avctx->lowres; > int is_field_mode[5];
This will break in configurations that can't automatically align stack data to 16 bytes, which is pretty much everything except gcc on x86 and ppc. -- Måns Rullgård [email protected] _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
