diff options
author | Martin Storsjö <martin@martin.st> | 2015-02-19 23:26:40 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-02-21 12:32:47 +0300 |
commit | b878ba03e7e088777cc5083766e0b2a293e716ee (patch) | |
tree | 8b98f5adf4e28f1e5a5df3fe7d375b34ecb718b9 | |
parent | 10e2d8b5562d8729e4eefbcec63a11eb8a0c502c (diff) |
rtpdec_hevc: Initialize variables to silence false positive compiler warnings
For some reason, clang didn't warn about this prior to using the
shared function.
Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r-- | libavformat/rtpdec_hevc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rtpdec_hevc.c b/libavformat/rtpdec_hevc.c index 13df942cc7..6f1d680a82 100644 --- a/libavformat/rtpdec_hevc.c +++ b/libavformat/rtpdec_hevc.c @@ -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; |