[FFmpeg-devel] [PATCH 2/5] cbs: Add a macro to create functions for deep copying

2018-11-26 Thread Andreas Rheinhardt
Some structs in cbs (most importantly some of the parameter sets of H.264/HEVC) can contain external buffers so that shallow copies are not enough for them; furthermore, they need a special free-callback function. The macro provided in this commit can be used to easily create functions both for cop

[FFmpeg-devel] [PATCH 2/5] cbs: Add a macro to create functions for deep copying

2018-11-23 Thread Andreas Rheinhardt
Some structs in cbs (most importantly some of the parameter sets of H.264/HEVC) can contain external buffers so that shallow copies are not enough for them; furthermore, they need a special free-callback function. The macro provided in this commit can be used to easily create functions both for cop