Module: sems
Branch: master
Commit: 52914cdc528289d420673ac7ca7b08068dbd2995
URL: 
https://github.com/sems-server/sems/commit/52914cdc528289d420673ac7ca7b08068dbd2995

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date: 2015-11-17T16:31:52+01:00

c/f: fix typo in g729 codec

---

Modified: core/plug-in/g729/g729.c

---

Diff:  
https://github.com/sems-server/sems/commit/52914cdc528289d420673ac7ca7b08068dbd2995.diff
Patch: 
https://github.com/sems-server/sems/commit/52914cdc528289d420673ac7ca7b08068dbd2995.patch

---

diff --git a/core/plug-in/g729/g729.c b/core/plug-in/g729/g729.c
index d83f270..89962e9 100644
--- a/core/plug-in/g729/g729.c
+++ b/core/plug-in/g729/g729.c
@@ -63,7 +63,7 @@ static void g729_destroy(long h_codec);
 static unsigned int g729_bytes2samples(long, unsigned int);
 static unsigned int g729_samples2bytes(long, unsigned int);
 
-static amci_codec_fmt_info_t[] gsm_fmt_description = { { 
AMCI_FMT_FRAME_LENGTH, 20 },
+static amci_codec_fmt_info_t g729_fmt_description[] =  { { 
AMCI_FMT_FRAME_LENGTH, 20 },
                                                       { AMCI_FMT_FRAME_SIZE, 
160 },
                                                       { 
AMCI_FMT_ENCODED_FRAME_SIZE, 33 },
                                                       { 0, 0 }
@@ -222,6 +222,8 @@ long g729_create(const char* format_parameters, const 
char** format_parameters_o
       }
 
     codec->pInfo = pInfo;
+
+    *format_description = g729_fmt_description;
     return (long) codec;
 }
 

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to