The warning is a false positive.

---
I prefer actually initializing the variable, rather than marking it
with av_uninit, since the code is not nearly performance critical, and
using av_uninit to silence the warning could mask an actual case of it
being used uninitialized if the code is restructured.
---
 libavformat/rtpdec_vp8.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rtpdec_vp8.c b/libavformat/rtpdec_vp8.c
index 966f7b8..13efa54 100644
--- a/libavformat/rtpdec_vp8.c
+++ b/libavformat/rtpdec_vp8.c
@@ -70,7 +70,7 @@ static int vp8_handle_packet(AVFormatContext *ctx, 
PayloadContext *vp8,
     int extended_bits, part_id;
     int pictureid_present = 0, tl0picidx_present = 0, tid_present = 0,
         keyidx_present = 0;
-    int pictureid = -1, pictureid_mask;
+    int pictureid = -1, pictureid_mask = 0;
     int returned_old_frame = 0;
     uint32_t old_timestamp;
 
-- 
1.7.9.4

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to