Unified · Split
| @@ -15,6 +15,9 @@ libavutil: 2017-10-21 · 14 unmodified lines | ||
| 15 | 15 | |
| 16 | 16 | API changes, most recent first: |
| 17 | 17 | |
| 18 | +2020-06-xx - xxxxxxxxxx - lavu 56.50.100 - buffer.h | |
| 19 | + Passing NULL as alloc argument to av_buffer_pool_init2() is now allowed. | |
| 20 | + | |
| 18 | 21 | 2020-xx-xx - xxxxxxxxxx - lavc 58.88.100 - avcodec.h codec.h |
| 19 | 22 | Move AVCodec-related public API to new header codec.h. |
| 20 | 23 | |
| @@ -229,6 +229,7 @@ AVBufferPool *av_buffer_pool_init2(int size, void *opaque, · 228 unmodified lines | ||
| 229 | 229 | pool->size = size; |
| 230 | 230 | pool->opaque = opaque; |
| 231 | 231 | pool->alloc2 = alloc; |
| 232 | + pool->alloc = av_buffer_alloc; // fallback | |
| 232 | 233 | pool->pool_free = pool_free; |
| 233 | 234 | |
| 234 | 235 | atomic_init(&pool->refcount, 1); |
| @@ -310,6 +311,8 @@ static AVBufferRef *pool_alloc_buffer(AVBufferPool *pool) · 75 unmodified lines | ||
| 310 | 311 | BufferPoolEntry *buf; |
| 311 | 312 | AVBufferRef *ret; |
| 312 | 313 | |
| 314 | + av_assert0(pool->alloc || pool->alloc2); | |
| 315 | + | |
| 313 | 316 | ret = pool->alloc2 ? pool->alloc2(pool->opaque, pool->size) : |
| 314 | 317 | pool->alloc(pool->size); |
| 315 | 318 | if (!ret) |
| @@ -79,7 +79,7 @@ · 78 unmodified lines | ||
| 79 | 79 | */ |
| 80 | 80 | |
| 81 | 81 | #define LIBAVUTIL_VERSION_MAJOR 56 |
| 82 | −#define LIBAVUTIL_VERSION_MINOR 49 | |
| 82 | +#define LIBAVUTIL_VERSION_MINOR 50 | |
| 83 | 83 | #define LIBAVUTIL_VERSION_MICRO 100 |
| 84 | 84 | |
| 85 | 85 | #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \ |