]> git.sesse.net Git - ffmpeg/commitdiff
lavf/sdp: Change pointer to configuration from char* to uint8_t*.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Thu, 14 Mar 2019 23:52:50 +0000 (00:52 +0100)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Wed, 20 Mar 2019 16:19:14 +0000 (17:19 +0100)
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

libavformat/sdp.c

index a5d202e99cb28473194e15fd7ce9a5476feb44ec..34e9839b67aa20993132ee6237710b8a02411a5d 100644 (file)
@@ -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;