aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2019-03-15 00:52:50 +0100
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2019-03-20 17:19:14 +0100
commita171cafb355935faf563f979a2382d98dfb0b8c4 (patch)
tree2ec3fec299192a8e832fa876f33374a62872090d /libavformat
parentba0a56e0b00474eb0e47d503b139816fe28c47e5 (diff)
downloadffmpeg-a171cafb355935faf563f979a2382d98dfb0b8c4.tar.gz
lavf/sdp: Change pointer to configuration from char* to uint8_t*.
This is also what av_base64_encode() expects. Fixes the following warnings with clang: libavformat/sdp.c:394:40: warning: implicit conversion from 'int' to 'char' changes value from 254 to -2 libavformat/sdp.c:395:40: warning: implicit conversion from 'int' to 'char' changes value from 205 to -51 libavformat/sdp.c:396:40: warning: implicit conversion from 'int' to 'char' changes value from 186 to -70
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/sdp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index a5d202e99c..34e9839b67 100644
--- a/libavformat/sdp.c
+++ b/libavformat/sdp.c
@@ -347,7 +347,8 @@ static char *extradata2config(AVFormatContext *s, AVCodecParameters *par)
static char *xiph_extradata2config(AVFormatContext *s, AVCodecParameters *par)
{
- char *config, *encoded_config;
+ uint8_t *config;
+ char *encoded_config;
const uint8_t *header_start[3];
int headers_len, header_len[3], config_len;
int first_header_size;