Browse Source

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>
tags/n2.5
Michael Niedermayer 11 years ago
parent
commit
e591608753
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      libavcodec/xiph.c
  2. +1
    -1
      libavcodec/xiph.h

+ 1
- 1
libavcodec/xiph.c View File

@@ -21,7 +21,7 @@
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "xiph.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 first_header_size, uint8_t *header_start[3],
int header_len[3]) int header_len[3])
{ {


+ 1
- 1
libavcodec/xiph.h View File

@@ -36,7 +36,7 @@
* @param[out] header_len The sizes of each of the three headers. * @param[out] header_len The sizes of each of the three headers.
* @return On error a negative value is returned, on success zero. * @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 first_header_size, uint8_t *header_start[3],
int header_len[3]); int header_len[3]);




Loading…
Cancel
Save