summaryrefslogtreecommitdiff
path: root/libavformat/srtp.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-01-20 19:06:51 +0200
committerMartin Storsjö <martin@martin.st>2013-01-21 00:17:00 +0200
commitc9311f3e46649786556b6c8ba742129cdfa16f2e (patch)
tree36024a4f5c005eb3aa008994ed00849ff88d9da3 /libavformat/srtp.c
parentae01e8d29540cc9b8492ef63938507f1a225e43f (diff)
srtp: Move a variable to a local scope
This simplifies the code slightly. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/srtp.c')
-rw-r--r--libavformat/srtp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/srtp.c b/libavformat/srtp.c
index 5c49794486..1fe34a7c5a 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;