[FFmpeg-devel] [PATCH v2 4/6] avcodec/cbs_h2645: Write slice data directly

2019-11-19 Thread Andreas Rheinhardt
Up until now, writing the data of a slice uses an intermediate buffer into which the unit (both header as well as the rest) is assembled before being copied into a freshly allocated buffer. But given that one has a very good upper bound on the size needed before one starts copying the slice data, o

[FFmpeg-devel] [PATCH v2 4/6] avcodec/cbs_h2645: Write slice data directly

2019-11-16 Thread Andreas Rheinhardt
Up until now, writing the data of a slice uses an intermediate buffer into which the unit (both header as well as the rest) is assembled before being copied into a freshly allocated buffer. But given that one has a very good upper bound on the size needed before one starts copying the slice data, o