1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-23 21:54:53 +02:00

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.
This commit is contained in:
Anton Khirnov
2020-06-05 11:17:49 +02:00
parent 5bbf58ab87
commit 68918d3b7f
4 changed files with 46 additions and 1 deletions

View File

@@ -15,6 +15,9 @@ libavutil: 2017-10-21
API changes, most recent first:
2020-xx-xx - xxxxxxxxxx - lavu 56.60.100 - buffer.h
Add a av_buffer_replace() convenience function.
2020-09-xx - xxxxxxxxxx - lavu 56.59.100 - timecode.h
Add av_timecode_make_smpte_tc_string2.