[FFmpeg-cvslog] srtp: Move a variable to a local scope

Martin Storsjö git at videolan.org
Mon Jan 21 15:26:15 CET 2013


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Sun Jan 20 19:06:51 2013 +0200| [c9311f3e46649786556b6c8ba742129cdfa16f2e] | committer: Martin Storsjö

srtp: Move a variable to a local scope

This simplifies the code slightly.

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

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

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

diff --git a/libavformat/srtp.c b/libavformat/srtp.c
index 5c49794..1fe34a7 100644
--- a/libavformat/srtp.c
+++ b/libavformat/srtp.c
@@ -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;



More information about the ffmpeg-cvslog mailing list