1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

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>
This commit is contained in:
Martin Storsjö 2015-02-19 22:26:40 +02:00
parent 10e2d8b556
commit b878ba03e7

View File

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