The current API where the plain size is exposed is not of much use - in most cases it is allocated dynamically anyway. If allocated e.g. on the stack via an uint8_t array, there's no guarantee that the struct's members are aligned properly (unless the array is overallocated and the opaque pointer within it manually aligned to some unspecified alignment).
Showing the changes to doc/APIchanges (1 of 10 files). Show all
Unified · Split
| @@ -13,6 +13,10 @@ libavutil: 2011-04-18 · 12 unmodified lines | |||
| 13 | 13 | ||
| 14 | API changes, most recent first: | 14 | API changes, most recent first: |
| 15 | 15 | ||
| 16 | 2012-10-xx - xxxxxxx - lavu 51.43.0 - aes.h, md5.h, sha.h, tree.h | ||
| 17 | Add functions for allocating the opaque contexts for the algorithms, | ||
| 18 | deprecate the context size variables. | ||
| 19 | |||
| 16 | 2012-10-xx - xxxxxxx - lavf 54.18.0 - avio.h | 20 | 2012-10-xx - xxxxxxx - lavf 54.18.0 - avio.h |
| 17 | Add avio_closep to complement avio_close. | 21 | Add avio_closep to complement avio_close. |
| 18 | 22 | ||