Re: [FFmpeg-devel] [PATCH] mpeg4videodec: silence ubsan warning

2016-01-15 Thread Andreas Cadhalpun
On 15.01.2016 03:17, Michael Niedermayer wrote: > On Fri, Jan 15, 2016 at 12:30:28AM +0100, Andreas Cadhalpun wrote: >> s->ac_val[0][0] is of type 'int16_t [16]', but points into a larger buffer. >> Here it is used as base pointer to find the correct position in the >> larger buffer by adding 's->b

Re: [FFmpeg-devel] [PATCH] mpeg4videodec: silence ubsan warning

2016-01-14 Thread Michael Niedermayer
On Fri, Jan 15, 2016 at 12:30:28AM +0100, Andreas Cadhalpun wrote: > s->ac_val[0][0] is of type 'int16_t [16]', but points into a larger buffer. > Here it is used as base pointer to find the correct position in the > larger buffer by adding 's->block_index[n] * 16' and thus as 'int16_t *'. > > Thi