[FFmpeg-devel] [PATCH] Respect payload offset in av_grow_packet
andriy.lysnevych at gmail.com
Wed May 25 16:58:33 CEST 2016
> data_offset should probably be size_t, thats also what offsetof() would
> a pointer difference can be larger than INT_MAX
> also please add a av_assert0 that pkt->data is not NULL or handle that
Done NULL data handling but it makes code more complex. Please check.
> as pkt->size can be 0 iam not sure pkt->data is guranteed to be non
It should work with pkt->size = 0 for both reference counted and
not-reference counted packets without memory leak. It should allocate
just padding and zeroize it.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2119 bytes
Desc: not available
More information about the ffmpeg-devel