rtpdec_hevc: Initialize variables to silence false positive compiler warnings
authorMartin Storsjö <martin@martin.st>
Thu, 19 Feb 2015 20:26:40 +0000 (22:26 +0200)
committerMartin Storsjö <martin@martin.st>
Sat, 21 Feb 2015 09:32:47 +0000 (11:32 +0200)
For some reason, clang didn't warn about this prior to using the
shared function.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtpdec_hevc.c

index 13df942..6f1d680 100644 (file)
@@ -91,8 +91,8 @@ static av_cold int hevc_sdp_parse_fmtp_config(AVFormatContext *s,
     /* sprop-sei: [base64] */
     if (!strcmp(attr, "sprop-vps") || !strcmp(attr, "sprop-sps") ||
         !strcmp(attr, "sprop-pps") || !strcmp(attr, "sprop-sei")) {
-        uint8_t **data_ptr;
-        int *size_ptr;
+        uint8_t **data_ptr = NULL;
+        int *size_ptr = NULL;
         if (!strcmp(attr, "sprop-vps")) {
             data_ptr = &hevc_data->vps;
             size_ptr = &hevc_data->vps_size;