From 11b5c15fdb815a2af400bfddef944dbac41a434a Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Tue, 25 Feb 2014 15:42:35 -0500 Subject: Remove trailing whitespace Change-Id: I8116f63ff88687c8db3fd6e8e23b22ab2f759af0 Reviewed-on: https://code.wireshark.org/review/385 Reviewed-by: Bill Meier Tested-by: Bill Meier --- plugins/easy_codec/codec-g722.c | 12 ++++++------ plugins/easy_codec/codec-g722.h | 4 ++-- plugins/easy_codec/codec-g7231.c | 16 ++++++++-------- plugins/easy_codec/codec-g7231.h | 4 ++-- plugins/easy_codec/codec-g729a.c | 6 +++--- plugins/easy_codec/codec-g729a.h | 4 ++-- plugins/easy_codec/easy_codec_plugin.c | 4 ++-- 7 files changed, 25 insertions(+), 25 deletions(-) (limited to 'plugins/easy_codec') diff --git a/plugins/easy_codec/codec-g722.c b/plugins/easy_codec/codec-g722.c index a96a747611..35cce0dc65 100644 --- a/plugins/easy_codec/codec-g722.c +++ b/plugins/easy_codec/codec-g722.c @@ -12,12 +12,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. -* +* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. -* +* * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. @@ -59,10 +59,10 @@ int codec_g722_decode(void *context, const void *input, int inputSizeBytes, void short *speech = (short*)output; int decodedBytes = 0; int i; - + if (!ctx) return 0; - if ((inputSizeBytes % L_G722_FRAME_COMPRESSED) != 0) + if ((inputSizeBytes % L_G722_FRAME_COMPRESSED) != 0) return 0; if (!output) @@ -72,13 +72,13 @@ int codec_g722_decode(void *context, const void *input, int inputSizeBytes, void ((*outputSizeBytes - decodedBytes) >= L_G722_FRAME / 2 * sizeof(short))) { if (EasyG722_decoder(ctx->handle, (unsigned char*)bitstream, ctx->speach_buffer)) { int write_index = 0; - + for(i = 0; i < L_G722_FRAME; i+=2) { ctx->speach_buffer[write_index] = ctx->speach_buffer[i]; write_index++; } memcpy(speech, ctx->speach_buffer, L_G722_FRAME / 2 * sizeof(short)); - + speech += L_G722_FRAME / 2; decodedBytes += L_G722_FRAME / 2 * sizeof(short); diff --git a/plugins/easy_codec/codec-g722.h b/plugins/easy_codec/codec-g722.h index fed52761ec..f13899fbbb 100644 --- a/plugins/easy_codec/codec-g722.h +++ b/plugins/easy_codec/codec-g722.h @@ -12,12 +12,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. -* +* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. -* +* * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. diff --git a/plugins/easy_codec/codec-g7231.c b/plugins/easy_codec/codec-g7231.c index 8408ad0c53..1cb7017edd 100644 --- a/plugins/easy_codec/codec-g7231.c +++ b/plugins/easy_codec/codec-g7231.c @@ -12,12 +12,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. -* +* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. -* +* * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. @@ -59,9 +59,9 @@ int codec_g7231_decode(void *context, const void *input, int inputSizeBytes, voi const unsigned char *bitstream = (const unsigned char*)input; short *speech = (short*)output; int decodedBytes = 0; - + if (!ctx) return 0; - + if ( ctx->handle == -1) { if ( bitstream[0] & 0x03 ) { ctx->handle=EasyG7231_init_decoder(FALSE); @@ -69,10 +69,10 @@ int codec_g7231_decode(void *context, const void *input, int inputSizeBytes, voi } else { ctx->handle=EasyG7231_init_decoder(TRUE); ctx->l_g7231_frame_compressed = L_G7231_FRAME_COMPRESSED_63; - } + } } - - if ((inputSizeBytes % ctx->l_g7231_frame_compressed) != 0) + + if ((inputSizeBytes % ctx->l_g7231_frame_compressed) != 0) return 0; if (!output) @@ -86,7 +86,7 @@ int codec_g7231_decode(void *context, const void *input, int inputSizeBytes, voi memcpy(speech, ctx->speach_buffer, L_G7231_FRAME * sizeof(short)); speech += L_G7231_FRAME; decodedBytes += L_G7231_FRAME * sizeof(short); - + } bitstream += ctx->l_g7231_frame_compressed; inputSizeBytes -= ctx->l_g7231_frame_compressed; diff --git a/plugins/easy_codec/codec-g7231.h b/plugins/easy_codec/codec-g7231.h index 05f5f358ba..8faebe3fa2 100644 --- a/plugins/easy_codec/codec-g7231.h +++ b/plugins/easy_codec/codec-g7231.h @@ -12,12 +12,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. -* +* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. -* +* * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. diff --git a/plugins/easy_codec/codec-g729a.c b/plugins/easy_codec/codec-g729a.c index 399d02f787..0b692b7c15 100644 --- a/plugins/easy_codec/codec-g729a.c +++ b/plugins/easy_codec/codec-g729a.c @@ -12,12 +12,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. -* +* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. -* +* * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. @@ -61,7 +61,7 @@ int codec_g729a_decode(void *context, const void *input, int inputSizeBytes, voi if (!ctx) return 0; - if ((inputSizeBytes % L_G729A_FRAME_COMPRESSED) != 0) + if ((inputSizeBytes % L_G729A_FRAME_COMPRESSED) != 0) return 0; if (!output) diff --git a/plugins/easy_codec/codec-g729a.h b/plugins/easy_codec/codec-g729a.h index 65225beddd..d1d73e04cb 100644 --- a/plugins/easy_codec/codec-g729a.h +++ b/plugins/easy_codec/codec-g729a.h @@ -12,12 +12,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. -* +* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. -* +* * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. diff --git a/plugins/easy_codec/easy_codec_plugin.c b/plugins/easy_codec/easy_codec_plugin.c index 2e586787ce..77577752c8 100644 --- a/plugins/easy_codec/easy_codec_plugin.c +++ b/plugins/easy_codec/easy_codec_plugin.c @@ -12,12 +12,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. -* +* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. -* +* * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -- cgit v1.2.3