diff options
author | Marvin Scholz <epirat07@gmail.com> | 2021-11-22 00:25:16 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-12-04 14:06:30 +0100 |
commit | c6f4e10111debf5b547a399661a5fe997d761033 (patch) | |
tree | 9db0998c6104fe6985540de95665e7bdbd3b81b2 /libavcodec/hq_hqadata.c | |
parent | a7df966c82b991ea4f05c40ff5efab65ce56308e (diff) | |
download | ffmpeg-c6f4e10111debf5b547a399661a5fe997d761033.tar.gz |
avformat: do not use AVIO_FLAG_* with avio_alloc_context
The documentation states that here 0 should be used for read-only and
1 for a writable buffer. AVIO_FLAG_WRITE however is 2, while it works
due to the way the flag is handled internally, it is still wrong
according to the documentation.
Additionally it makes it seem as if the AVIO_FLAG_* values could be used
here, which is actually not true, as when AVIO_FLAG_READ would be used
here it would create a writable buffer as AVIO_FLAG_READ is defined as 1.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/hq_hqadata.c')
0 files changed, 0 insertions, 0 deletions