Fix BENCHMARK_STOP call for AMR and FR

Message ID 20170903102008.13414-1-axilirator@gmail.com
State New
Headers show
Series
  • Fix BENCHMARK_STOP call for AMR and FR
Related show

Commit Message

Vadim Yanitskiy Sept. 3, 2017, 10:20 a.m.
---
 src/codec_amr.c | 4 ++--
 src/codec_fr.c  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

Patch

diff --git a/src/codec_amr.c b/src/codec_amr.c
index 4aae733..ca614ed 100644
--- a/src/codec_amr.c
+++ b/src/codec_amr.c
@@ -78,7 +78,7 @@  codec_amr_encode(void *state, uint8_t *cod, const uint8_t *pcm, unsigned int pcm
 		(unsigned char*) cod,
 		1
 	);
-	BENCHMARK_STOP(CODEC_EFR, 1);
+	BENCHMARK_STOP(CODEC_AMR, 1);
 
 	return rv;
 }
@@ -95,7 +95,7 @@  codec_amr_decode(void *state, uint8_t *pcm, const uint8_t *cod, unsigned int cod
 		(short *) pcm,
 		0
 	);
-	BENCHMARK_STOP(CODEC_EFR, 0);
+	BENCHMARK_STOP(CODEC_AMR, 0);
 
 	return PCM_CANON_LEN;
 }
diff --git a/src/codec_fr.c b/src/codec_fr.c
index 2ce44b4..917f34b 100644
--- a/src/codec_fr.c
+++ b/src/codec_fr.c
@@ -74,7 +74,7 @@  codec_fr_decode(void *state, uint8_t *pcm, const uint8_t *cod, unsigned int cod_
 	memcpy(cod_b, cod, FR_CANON_LEN);
 	BENCHMARK_START;
 	rc = gsm_decode(gh, (gsm_byte*)cod_b, (gsm_signal*)pcm);
-	BENCHMARK_STOP(CODEC_FR, 1);
+	BENCHMARK_STOP(CODEC_FR, 0);
 	if (rc < 0)
 		return rc;
 	return PCM_CANON_LEN;