sön 2023-09-10 klockan 12:07 +0200 skrev Andreas Rheinhardt:
> It is undefined behaviour even in cases where it works
> (it works because it is only a const uint8_t* vs. uint8_t*
> difference).
> Instead use a macro to produce two functions with the required
> types to be const-correct and
It is undefined behaviour even in cases where it works
(it works because it is only a const uint8_t* vs. uint8_t* difference).
Instead use a macro to produce two functions with the required
types to be const-correct and type-safe.
Signed-off-by: Andreas Rheinhardt
---
libavformat/avio.c | 98