From: Luigi Rizzo Date: Fri, 22 Sep 2006 14:56:21 +0000 (+0000) Subject: style fix: X-Git-Tag: 1.6.0-beta1~3^2~4670 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4d188126d92f1f46f250fd386484675edb9d28c1;p=thirdparty%2Fasterisk.git style fix: move variable declaration at the beginning of the block. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43479 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index f765cf1b49..e3c7f3b68c 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4531,6 +4531,9 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req) int numberofmediastreams = 0; int debug = sip_debug_test_pvt(p); + int found_rtpmap_codecs[32]; + int last_rtpmap_codec=0; + if (!p->rtp) { ast_log(LOG_ERROR, "Got SDP but have no RTP session allocated.\n"); return -1; @@ -4702,8 +4705,6 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req) */ /* XXX This needs to be done per media stream, since it's media stream specific */ iterator = req->sdp_start; - int found_rtpmap_codecs[32]; - int last_rtpmap_codec=0; while ((a = get_sdp_iterate(&iterator, req, "a"))[0] != '\0') { char* mimeSubtype = ast_strdupa(a); /* ensures we have enough space */ if (option_debug > 1) {