[FFmpeg-devel] Re: [PATCH 1/3] avcodec/avpacket: add av_packet_resize()

2021-03-14 Thread Anton Khirnov
Quoting James Almer (2021-03-14 16:35:48) > On 3/14/2021 7:34 AM, Anton Khirnov wrote: > > Quoting James Almer (2021-03-12 18:24:47) > >> > >> The padding exists AFAIK because something, like an optimized bitstream > >> reader that tries to process several bytes at the same time, may end up > >> re

[FFmpeg-devel] Re: [PATCH 1/3] avcodec/avpacket: add av_packet_resize()

2021-03-14 Thread Anton Khirnov
Quoting James Almer (2021-03-12 18:24:47) > > The padding exists AFAIK because something, like an optimized bitstream > reader that tries to process several bytes at the same time, may end up > reading or writing pass the reported end of the buffer. > That means that if reading and it's not all