mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 21:58:38 -05:00
Must initialize Q65 codec is decode is called before encode.
This commit is contained in:
parent
079177579f
commit
ccdaf49e3a
@ -62,7 +62,17 @@ void q65_dec_(float s3[], int APmask[], int APsymbols[], float s3prob[],
|
|||||||
int rc;
|
int rc;
|
||||||
int ydec[63];
|
int ydec[63];
|
||||||
float esnodb;
|
float esnodb;
|
||||||
|
static int first=1;
|
||||||
|
|
||||||
|
if (first) {
|
||||||
|
// Set the QRA code, allocate memory, and initialize
|
||||||
|
int rc = q65_init(&codec,&qra15_65_64_irr_e23);
|
||||||
|
if (rc<0) {
|
||||||
|
printf("error in q65_init()\n");
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
first=0;
|
||||||
|
}
|
||||||
// rc = q65_intrinsics_fastfding(&codec,s3prob,s3,submode,B90,fadingModel);
|
// rc = q65_intrinsics_fastfding(&codec,s3prob,s3,submode,B90,fadingModel);
|
||||||
rc = q65_intrinsics(&codec,s3prob,s3);
|
rc = q65_intrinsics(&codec,s3prob,s3);
|
||||||
if(rc<0) {
|
if(rc<0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user