[FFmpeg-cvslog] srtp: Mark a few variables as uninitialized

Martin Storsjö git at videolan.org
Wed Jan 16 12:17:32 CET 2013


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Tue Jan 15 15:19:55 2013 +0200| [42364fcbcac99c42a9859c3662a2956e5554b68c] | committer: Martin Storsjö

srtp: Mark a few variables as uninitialized

This squelches false positive warnings (with gcc) about them being
used uninitalized.

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=42364fcbcac99c42a9859c3662a2956e5554b68c
---

 libavformat/srtp.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/srtp.c b/libavformat/srtp.c
index de48c14..ebc5c98 100644
--- a/libavformat/srtp.c
+++ b/libavformat/srtp.c
@@ -121,8 +121,8 @@ int ff_srtp_decrypt(struct SRTPContext *s, uint8_t *buf, int *lenptr)
 {
     uint8_t iv[16] = { 0 }, hmac[20];
     int len = *lenptr;
-    int ext, seq_largest;
-    uint32_t ssrc, roc;
+    int ext, av_uninit(seq_largest);
+    uint32_t ssrc, av_uninit(roc);
     uint64_t index;
     int rtcp;
 



More information about the ffmpeg-cvslog mailing list