Re: [libav-devel] [PATCH 4/9] decode: be more explicit about storing the last packet properties

2016-11-22 Thread Vittorio Giovara
On Tue, Nov 22, 2016 at 8:36 AM, Anton Khirnov wrote: > The current code stores a pointer to the packet passed to the decoder, > which is then used during get_buffer() for timestamps and side data > passthrough. However, since this is a pointer to user data which we do > not own, storing it is pot

[libav-devel] [PATCH 4/9] decode: be more explicit about storing the last packet properties

2016-11-22 Thread Anton Khirnov
The current code stores a pointer to the packet passed to the decoder, which is then used during get_buffer() for timestamps and side data passthrough. However, since this is a pointer to user data which we do not own, storing it is potentially dangerous. It is also ill defined for the new decoding