From c9311f3e46649786556b6c8ba742129cdfa16f2e Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Sun, 20 Jan 2013 19:06:51 +0200 Subject: srtp: Move a variable to a local scope MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This simplifies the code slightly. Signed-off-by: Martin Storsjö --- libavformat/srtp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavformat/srtp.c') 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; -- cgit v1.2.3