forked from mia/Aegisub
Silence warnings in MatroskaParser.c
Originally committed to SVN as r3469.
This commit is contained in:
parent
4aa6975a8d
commit
65d2eda681
1 changed files with 4 additions and 3 deletions
|
@ -569,7 +569,7 @@ static void readbytes(MatroskaFile *mf,void *buffer,int len) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void skipbytes(MatroskaFile *mf,ulonglong len) {
|
static void skipbytes(MatroskaFile *mf,ulonglong len) {
|
||||||
int nb = mf->buflen - mf->bufpos;
|
unsigned int nb = mf->buflen - mf->bufpos;
|
||||||
|
|
||||||
if (nb > len)
|
if (nb > len)
|
||||||
nb = (int)len;
|
nb = (int)len;
|
||||||
|
@ -840,7 +840,7 @@ shift:
|
||||||
}
|
}
|
||||||
|
|
||||||
static void readString(MatroskaFile *mf,ulonglong len,char *buffer,int buflen) {
|
static void readString(MatroskaFile *mf,ulonglong len,char *buffer,int buflen) {
|
||||||
int nread;
|
unsigned int nread;
|
||||||
|
|
||||||
if (buflen<1)
|
if (buflen<1)
|
||||||
errorjmp(mf,"Invalid buffer size in readString: %d",buflen);
|
errorjmp(mf,"Invalid buffer size in readString: %d",buflen);
|
||||||
|
@ -913,6 +913,7 @@ static void readLangCC(MatroskaFile *mf, ulonglong len, char lcc[4]) {
|
||||||
#define STRGETA(f,v,len) STRGETF(f,v,len,myalloca)
|
#define STRGETA(f,v,len) STRGETF(f,v,len,myalloca)
|
||||||
#define STRGETM(f,v,len) STRGETF(f,v,len,f->cache->memalloc)
|
#define STRGETM(f,v,len) STRGETF(f,v,len,f->cache->memalloc)
|
||||||
|
|
||||||
|
/* Removed because it's not used.
|
||||||
static int IsWritingApp(MatroskaFile *mf,const char *str) {
|
static int IsWritingApp(MatroskaFile *mf,const char *str) {
|
||||||
const char *cp = mf->Seg.WritingApp;
|
const char *cp = mf->Seg.WritingApp;
|
||||||
if (!cp)
|
if (!cp)
|
||||||
|
@ -922,7 +923,7 @@ static int IsWritingApp(MatroskaFile *mf,const char *str) {
|
||||||
|
|
||||||
return !*str;
|
return !*str;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
static void parseEBML(MatroskaFile *mf,ulonglong toplen) {
|
static void parseEBML(MatroskaFile *mf,ulonglong toplen) {
|
||||||
ulonglong v;
|
ulonglong v;
|
||||||
char buf[32];
|
char buf[32];
|
||||||
|
|
Loading…
Reference in a new issue