mirror of
https://github.com/DrKLO/Telegram.git
synced 2024-12-22 14:35:03 +01:00
4ede311055
Audio notes (opus codec) A lot of different improvements and bug fixes Thanks to: https://github.com/DrKLO/Telegram/issues/293 https://github.com/DrKLO/Telegram/issues/256 FOSS configuration not ready yet I will move main dev branch to github in next couple commits
42 lines
1.4 KiB
C
42 lines
1.4 KiB
C
/********************************************************************
|
|
* *
|
|
* THIS FILE IS PART OF THE libopusfile SOFTWARE CODEC SOURCE CODE. *
|
|
* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
|
|
* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
|
|
* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
|
|
* *
|
|
* THE libopusfile SOURCE CODE IS (C) COPYRIGHT 2012 *
|
|
* by the Xiph.Org Foundation and contributors http://www.xiph.org/ *
|
|
* *
|
|
********************************************************************/
|
|
#ifdef HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#include "internal.h"
|
|
|
|
#if defined(OP_ENABLE_ASSERTIONS)
|
|
void op_fatal_impl(const char *_str,const char *_file,int _line){
|
|
fprintf(stderr,"Fatal (internal) error in %s, line %i: %s\n",
|
|
_file,_line,_str);
|
|
abort();
|
|
}
|
|
#endif
|
|
|
|
/*A version of strncasecmp() that is guaranteed to only ignore the case of
|
|
ASCII characters.*/
|
|
int op_strncasecmp(const char *_a,const char *_b,int _n){
|
|
int i;
|
|
for(i=0;i<_n;i++){
|
|
int a;
|
|
int b;
|
|
int d;
|
|
a=_a[i];
|
|
b=_b[i];
|
|
if(a>='a'&&a<='z')a-='a'-'A';
|
|
if(b>='a'&&b<='z')b-='a'-'A';
|
|
d=a-b;
|
|
if(d)return d;
|
|
}
|
|
return 0;
|
|
}
|