This callback is functionally the same as get_buffer2() is for decoders, and implements for the new encode API the functionality of the old encode API had where the user could provide their own buffers.
Showing the changes to doc/APIchanges (1 of 7 files). Show all
Unified · Split
| @@ -15,6 +15,13 @@ libavutil: 2017-10-21 · 14 unmodified lines | ||
| 15 | 15 | |
| 16 | 16 | API changes, most recent first: |
| 17 | 17 | |
| 18 | +2021-03-12 - xxxxxxxxxx - lavc 58.131.100 - avcodec.h codec.h | |
| 19 | + Add a get_encode_buffer callback to AVCodecContext, similar to | |
| 20 | + get_buffer2 but for encoders. | |
| 21 | + Add avcodec_default_get_encode_buffer(). | |
| 22 | + Add AV_GET_ENCODE_BUFFER_FLAG_REF. | |
| 23 | + Encoders may now be flagged as AV_CODEC_CAP_DR1 capable. | |
| 24 | + | |
| 18 | 25 | 2021-03-10 - xxxxxxxxxx - lavf 58.72.100 - avformat.h |
| 19 | 26 | Change AVBufferRef related AVStream function and struct size |
| 20 | 27 | parameter and fields type to size_t at next major bump. |