]> git.sesse.net Git - ffmpeg/commitdiff
srtp: Move a variable to a local scope
authorMartin Storsjö <martin@martin.st>
Sun, 20 Jan 2013 17:06:51 +0000 (19:06 +0200)
committerMartin Storsjö <martin@martin.st>
Sun, 20 Jan 2013 22:17:00 +0000 (00:17 +0200)
This simplifies the code slightly.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/srtp.c

index 5c49794486851a6e3e6da879688777d323ed85d3..1fe34a7c5a4c1fcb289619fdfd6fe89ea8efdf7e 100644 (file)
@@ -126,7 +126,7 @@ int ff_srtp_decrypt(struct SRTPContext *s, uint8_t *buf, int *lenptr)
 {
     uint8_t iv[16] = { 0 }, hmac[20];
     int len = *lenptr;
-    int ext, av_uninit(seq_largest);
+    int av_uninit(seq_largest);
     uint32_t ssrc, av_uninit(roc);
     uint64_t index;
     int rtcp, hmac_size;
@@ -199,7 +199,7 @@ int ff_srtp_decrypt(struct SRTPContext *s, uint8_t *buf, int *lenptr)
         if (!(srtcp_index & 0x80000000))
             return 0;
     } else {
-        int csrc;
+        int ext, csrc;
         s->seq_initialized = 1;
         s->seq_largest     = seq_largest;
         s->roc             = roc;