[FFmpeg-cvslog] rtpdec_hevc: Initialize variables to silence false positive compiler warnings
Martin Storsjö
git at videolan.org
Sat Feb 21 13:15:39 CET 2015
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Thu Feb 19 22:26:40 2015 +0200| [b878ba03e7e088777cc5083766e0b2a293e716ee] | committer: Martin Storsjö
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 at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b878ba03e7e088777cc5083766e0b2a293e716ee
---
libavformat/rtpdec_hevc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/rtpdec_hevc.c b/libavformat/rtpdec_hevc.c
index 13df942..6f1d680 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;
More information about the ffmpeg-cvslog
mailing list