av_image_copy() accepts const uint8_t* const * as source; lots of user have uint8_t* const * and therefore either cast (the majority) or copy the array of pointers. This commit changes this by adding a static inline wrapper for av_image_copy() that casts between the two types so that we do not need to add casts everywhere else.
Showing the changes to doc/APIchanges (1 of 22 files). Show all
Unified · Split
| @@ -2,6 +2,10 @@ The last version increases of all libraries were on 2023-02-09 · 1 unmodified line | ||
| 2 | 2 | |
| 3 | 3 | API changes, most recent first: |
| 4 | 4 | |
| 5 | +2023-09-07 - xxxxxxxxxx - lavu 58.24.100 - imgutils.h | |
| 6 | + Add av_image_copy2(), a wrapper around the av_image_copy() | |
| 7 | + to overcome limitations of automatic conversions. | |
| 8 | + | |
| 5 | 9 | 2023-09-07 - xxxxxxxxxx - lavu 58.23.100 - fifo.h |
| 6 | 10 | Constify the AVFifo pointees in av_fifo_peek() and av_fifo_peek_to_cb(). |
| 7 | 11 | |