diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-06 15:31:42 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-12 23:22:49 +0200 |
commit | b67171893d91ee9f2901ef5d91db7ee0ed9848ed (patch) | |
tree | 9bff76789b3b4e615e5f8e03cc81499c3cfea9b5 /libavformat/dhav.c | |
parent | a18ccbfaeb16523458b15bdbfc482eb5a14f61a7 (diff) | |
download | ffmpeg-b67171893d91ee9f2901ef5d91db7ee0ed9848ed.tar.gz |
avformat/avio: Don't use incompatible function pointer type for call
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 add a cbuf parameter to pass a const buffer (for writing)
as well as a parameter indicating whether we are reading or writing;
retry_transfer_wrapper() itself then uses the correct function
based upon this information.
Reviewed-by: Marton Balint <cus@passwd.hu>
Reviewed-by: Tomas Härdin <git@haerdin.se>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/dhav.c')
0 files changed, 0 insertions, 0 deletions