diff options
author | Mans Rullgard <mans@mansr.com> | 2012-04-18 21:01:15 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-04-18 23:54:20 +0100 |
commit | 6208313aebb29b2fef263b705d82b27c8844e3f3 (patch) | |
tree | e309dc3803559108990fe6c1b6812b06fcd8167b | |
parent | 9d72c0527c5b3dbfdf4a8cad3f306b2891dc3ea9 (diff) | |
download | ffmpeg-6208313aebb29b2fef263b705d82b27c8844e3f3.tar.gz |
avio: make AVIOContext.av_class pointer to const
Fix this warning:
libavformat/aviobuf.c:663:20: warning: assignment discards qualifiers from pointer target type
Although this is a public header, it should remain source and
binary compatible.
Signed-off-by: Mans Rullgard <mans@mansr.com>
-rw-r--r-- | libavformat/avio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h index 0ab92c32e5..10c0a12ccb 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -78,7 +78,7 @@ typedef struct { * warning -- this field can be NULL, be sure to not pass this AVIOContext * to any av_opt_* functions in that case. */ - AVClass *av_class; + const AVClass *av_class; unsigned char *buffer; /**< Start of the buffer. */ int buffer_size; /**< Maximum buffer size */ unsigned char *buf_ptr; /**< Current position in the buffer */ |