avcodec/xiph: make extradata argument const
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 6 Nov 2014 13:41:38 +0000 (14:41 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 6 Nov 2014 13:41:38 +0000 (14:41 +0100)
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>
libavcodec/xiph.c
libavcodec/xiph.h

index e63cec8..49b978d 100644 (file)
@@ -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])
 {
index 5c4dcc4..b8ddbbe 100644 (file)
@@ -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]);