diff options
author | Ben Avison <bavison@riscosopen.org> | 2013-08-07 23:22:38 +0100 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-08-08 11:09:00 +0300 |
commit | 5afe1d27912be9b643ffb4ddc21f6d920260dbb0 (patch) | |
tree | 4188a4cbcecdec1af0f534d06e55fef14dab3a4c /libavformat/avio_internal.h | |
parent | 0f1fb6c0194c85483dedb93b20a5b76f6fc9d520 (diff) | |
download | ffmpeg-5afe1d27912be9b643ffb4ddc21f6d920260dbb0.tar.gz |
avio: Add const qualifiers to ffio_read_indirect
This provides at least some protection against potential accidental
corruption of AVIO buffer workspace.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/avio_internal.h')
-rw-r--r-- | libavformat/avio_internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avio_internal.h b/libavformat/avio_internal.h index 4fa3adb270..5493163221 100644 --- a/libavformat/avio_internal.h +++ b/libavformat/avio_internal.h @@ -52,7 +52,7 @@ int ffio_init_context(AVIOContext *s, * will be a copy of buf * @return number of bytes read or AVERROR */ -int ffio_read_indirect(AVIOContext *s, unsigned char *buf, int size, unsigned char **data); +int ffio_read_indirect(AVIOContext *s, unsigned char *buf, int size, const unsigned char **data); /** * Read size bytes from AVIOContext into buf. |