]> git.sesse.net Git - ffmpeg/commitdiff
rtpdec: Initialize some variables to silence compiler warnings
authorMartin Storsjö <martin@martin.st>
Sat, 2 Mar 2013 11:54:50 +0000 (13:54 +0200)
committerMartin Storsjö <martin@martin.st>
Sat, 2 Mar 2013 19:23:52 +0000 (21:23 +0200)
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>
libavformat/rtpdec.c
libavformat/rtpdec_vp8.c

index 145d7c82e9dd997807bf872c9ba407e665158e9a..f734b91cbea0c83e5a951f1f487d12308f32bd1a 100644 (file)
@@ -424,7 +424,7 @@ int ff_rtp_send_rtcp_feedback(RTPDemuxContext *s, URLContext *fd,
     AVIOContext *pb;
     uint8_t *buf;
     int64_t now;
-    uint16_t first_missing, missing_mask;
+    uint16_t first_missing = 0, missing_mask = 0;
 
     if (!fd && !avio)
         return -1;
index 3db61c143e0f43b3fcc4619e35076d549afb830c..fc86ac1dd3b5d078f92ae9657151788e54a2f3ee 100644 (file)
@@ -82,7 +82,7 @@ static int vp8_handle_packet(AVFormatContext *ctx, PayloadContext *vp8,
         keyidx_present = 0;
     int pictureid = -1, pictureid_mask = 0;
     int returned_old_frame = 0;
-    uint32_t old_timestamp;
+    uint32_t old_timestamp = 0;
 
     if (!buf) {
         if (vp8->data) {