]> git.sesse.net Git - ffmpeg/commit
lavu/buffer: add a convenience function for replacing buffers
authorAnton Khirnov <anton@khirnov.net>
Fri, 5 Jun 2020 09:17:49 +0000 (11:17 +0200)
committerAnton Khirnov <anton@khirnov.net>
Mon, 28 Sep 2020 09:33:35 +0000 (11:33 +0200)
commit68918d3b7fda9e75d436a27705c54b77dcb41ba9
tree66fea07125274cf4107ebc07b9dacfeb517f2359
parent5bbf58ab876279ca1a5a2f30563f271c99b93e62
lavu/buffer: add a convenience function for replacing buffers

A common pattern e.g. in libavcodec is replacing/updating buffer
references: unref old one, ref new one. This function allows simplifying
such code and avoiding unnecessary refs+unrefs if the references are
already equivalent.
doc/APIchanges
libavutil/buffer.c
libavutil/buffer.h
libavutil/version.h