Re: [libav-devel] [PATCH] avpacket: Error out when creating 0-sized side data

2016-06-11 Thread Anton Khirnov
Quoting Vittorio Giovara (2016-06-10 00:35:03) > This mimics the behaviour of other av_*_new_side_data(). > This is not caught by the malloc check, since AV_INPUT_BUFFER_PADDING_SIZE > is always added to the allocated size. > > Signed-off-by: Vittorio Giovara > --- > This is assuming that packet

[libav-devel] [PATCH] avpacket: Error out when creating 0-sized side data

2016-06-09 Thread Vittorio Giovara
This mimics the behaviour of other av_*_new_side_data(). This is not caught by the malloc check, since AV_INPUT_BUFFER_PADDING_SIZE is always added to the allocated size. Signed-off-by: Vittorio Giovara --- This is assuming that packet side data cannot be used empty. [documentation needed] Vittor

Re: [libav-devel] [PATCH] avpacket: Error out when creating 0-sized side data

2016-06-09 Thread Vittorio Giovara
On Thu, Jun 9, 2016 at 6:31 PM, Vittorio Giovara wrote: > This mimics the behaviour of other av_*_new_side_data(). > This is not caught by the malloc check, since AV_INPUT_BUFFER_PADDING_SIZE > is always added to the allocated size. > > Signed-off-by: Vittorio Giovara > --- > This is assuming tha

Re: [libav-devel] [PATCH] avpacket: Error out when creating 0-sized side data

2016-06-09 Thread Hendrik Leppkes
On Fri, Jun 10, 2016 at 12:31 AM, Vittorio Giovara wrote: > This mimics the behaviour of other av_*_new_side_data(). > This is not caught by the malloc check, since AV_INPUT_BUFFER_PADDING_SIZE > is always added to the allocated size. > > Signed-off-by: Vittorio Giovara > --- > This is assuming t

[libav-devel] [PATCH] avpacket: Error out when creating 0-sized side data

2016-06-09 Thread Vittorio Giovara
This mimics the behaviour of other av_*_new_side_data(). This is not caught by the malloc check, since AV_INPUT_BUFFER_PADDING_SIZE is always added to the allocated size. Signed-off-by: Vittorio Giovara --- This is assuming that packet side data cannot be used empty. [documentation needed] Vittor