From b878ba03e7e088777cc5083766e0b2a293e716ee Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Thu, 19 Feb 2015 22:26:40 +0200 Subject: rtpdec_hevc: Initialize variables to silence false positive compiler warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For some reason, clang didn't warn about this prior to using the shared function. Signed-off-by: Martin Storsjö --- libavformat/rtpdec_hevc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavformat/rtpdec_hevc.c') 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; -- cgit v1.2.3