diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-11-06 14:41:38 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-06 14:41:38 +0100 |
commit | e591608753ed0b1eee4584362da0340e9351d0cb (patch) | |
tree | 39bafc8563b3087111ebfce4b5a03ebdf75908d2 | |
parent | 0de64082a967c88959e5f3962d34eeab0dc4e7a6 (diff) | |
download | ffmpeg-e591608753ed0b1eee4584362da0340e9351d0cb.tar.gz |
avcodec/xiph: make extradata argument const
Fixes "warning: passing argument 1 of avpriv_split_xiph_headers discards const qualifier from pointer target type"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/xiph.c | 2 | ||||
-rw-r--r-- | libavcodec/xiph.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/xiph.c b/libavcodec/xiph.c index e63cec85ac..49b978dd8f 100644 --- a/libavcodec/xiph.c +++ b/libavcodec/xiph.c @@ -21,7 +21,7 @@ #include "libavutil/intreadwrite.h" #include "xiph.h" -int avpriv_split_xiph_headers(uint8_t *extradata, int extradata_size, +int avpriv_split_xiph_headers(const uint8_t *extradata, int extradata_size, int first_header_size, uint8_t *header_start[3], int header_len[3]) { diff --git a/libavcodec/xiph.h b/libavcodec/xiph.h index 5c4dcc4565..b8ddbbe994 100644 --- a/libavcodec/xiph.h +++ b/libavcodec/xiph.h @@ -36,7 +36,7 @@ * @param[out] header_len The sizes of each of the three headers. * @return On error a negative value is returned, on success zero. */ -int avpriv_split_xiph_headers(uint8_t *extradata, int extradata_size, +int avpriv_split_xiph_headers(const uint8_t *extradata, int extradata_size, int first_header_size, uint8_t *header_start[3], int header_len[3]); |