The warnings are false positives, older gcc versions (such as 4.5)
think the variables can be used uninitialized while they in
practice can't, while newer (4.6) gets it right.
Signed-off-by: Martin Storsjö <martin@martin.st>
... | ... |
@@ -424,7 +424,7 @@ int ff_rtp_send_rtcp_feedback(RTPDemuxContext *s, URLContext *fd, |
424 | 424 |
AVIOContext *pb; |
425 | 425 |
uint8_t *buf; |
426 | 426 |
int64_t now; |
427 |
- uint16_t first_missing, missing_mask; |
|
427 |
+ uint16_t first_missing = 0, missing_mask = 0; |
|
428 | 428 |
|
429 | 429 |
if (!fd && !avio) |
430 | 430 |
return -1; |
... | ... |
@@ -82,7 +82,7 @@ static int vp8_handle_packet(AVFormatContext *ctx, PayloadContext *vp8, |
82 | 82 |
keyidx_present = 0; |
83 | 83 |
int pictureid = -1, pictureid_mask = 0; |
84 | 84 |
int returned_old_frame = 0; |
85 |
- uint32_t old_timestamp; |
|
85 |
+ uint32_t old_timestamp = 0; |
|
86 | 86 |
|
87 | 87 |
if (!buf) { |
88 | 88 |
if (vp8->data) { |