Projects
Essentials
gpac
gpac-0.6.1-64bit-portability.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gpac-0.6.1-64bit-portability.patch of Package gpac (Revision 18)
Currently displaying revision
18
,
Show latest
Index: gpac-0.6.1/applications/generators/MPEG4/main.c =================================================================== --- gpac-0.6.1.orig/applications/generators/MPEG4/main.c +++ gpac-0.6.1/applications/generators/MPEG4/main.c @@ -1037,7 +1037,7 @@ void WriteNodeCode(GF_List *BNodes) } //SFString else if (!strcmp(bf->familly, "SFString")) { - fprintf(f, "\tp->%s.buffer = (char*)gf_malloc(sizeof(char) * %d);\n", bf->name, strlen(bf->def)+1); + fprintf(f, "\tp->%s.buffer = (char*)gf_malloc(sizeof(char) * %d);\n", bf->name, (int)strlen(bf->def)+1); fprintf(f, "\tstrcpy(p->%s.buffer, \"%s\");\n", bf->name, bf->def); } @@ -1208,7 +1208,7 @@ void WriteNodeCode(GF_List *BNodes) store = CurrentLine; CurrentLine = token; GetNextToken(tok, " \""); - fprintf(f, "\tp->%s.vals[%d] = (char*)gf_malloc(sizeof(char) * %d);\n", bf->name, j, strlen(tok)+1); + fprintf(f, "\tp->%s.vals[%d] = (char*)gf_malloc(sizeof(char) * %d);\n", bf->name, j, (int)strlen(tok)+1); fprintf(f, "\tstrcpy(p->%s.vals[%d], \"%s\");\n", bf->name, j, tok); j+=1; CurrentLine = store; Index: gpac-0.6.1/applications/generators/SVG/svggen.h =================================================================== --- gpac-0.6.1.orig/applications/generators/SVG/svggen.h +++ gpac-0.6.1/applications/generators/SVG/svggen.h @@ -190,6 +190,16 @@ static _atts generic_attributes[] = { FILE *BeginFile(u32 type); void EndFile(FILE *f, u32 type); - +SVGGenAttribute *findAttribute(SVGGenElement *e, char *name); +void generateAttributes(FILE *output, GF_List *attributes, Bool inDefine); +u32 generateCoreInfo(FILE *output, SVGGenElement *elt, u32 start); +void generate_laser_tables(GF_List *svg_elements); +void generate_table(GF_List *elements); +void generateSVGCode_V1(GF_List *svg_elements); +void generateSVGCode_V2(GF_List *svg_elements); +void generateSVGCode_V3(GF_List *svg_elements); +void svgNameToImplementationName(xmlChar *svg_name, char implementation_name[50]); +u32 generateGenericInfo(FILE *output, SVGGenElement *elt, u32 index, char *pointer_root, u32 start); +void generate_laser_tables_da(GF_List *atts); #endif // _SVGGEN_H_ Index: gpac-0.6.1/applications/generators/X3D/main.c =================================================================== --- gpac-0.6.1.orig/applications/generators/X3D/main.c +++ gpac-0.6.1/applications/generators/X3D/main.c @@ -566,7 +566,7 @@ void WriteNodeCode(GF_List *BNodes, FILE } //SFString else if (!strcmp(bf->familly, "SFString")) { - fprintf(vrml_code, "\tp->%s.buffer = (char*) gf_malloc(sizeof(char) * %d);\n", bf->name, strlen(bf->def)+1); + fprintf(vrml_code, "\tp->%s.buffer = (char*) gf_malloc(sizeof(char) * %d);\n", bf->name, (int)strlen(bf->def)+1); fprintf(vrml_code, "\tstrcpy(p->%s.buffer, \"%s\");\n", bf->name, bf->def); } @@ -808,7 +808,7 @@ void WriteNodeCode(GF_List *BNodes, FILE store = CurrentLine; CurrentLine = token; GetNextToken(tok, " \""); - fprintf(vrml_code, "\tp->%s.vals[%d] = (char*)gf_malloc(sizeof(char) * %d);\n", bf->name, j, strlen(tok)+1); + fprintf(vrml_code, "\tp->%s.vals[%d] = (char*)gf_malloc(sizeof(char) * %d);\n", bf->name, j, (int)strlen(tok)+1); fprintf(vrml_code, "\tstrcpy(p->%s.vals[%d], \"%s\");\n", bf->name, j, tok); j+=1; CurrentLine = store; Index: gpac-0.6.1/modules/vtt_in/vtt_dec.c =================================================================== --- gpac-0.6.1.orig/modules/vtt_in/vtt_dec.c +++ gpac-0.6.1/modules/vtt_in/vtt_dec.c @@ -127,6 +127,7 @@ static GF_Err VTT_ProcessData(GF_SceneDe /* TODO: try to parse a cue from the given string */ break; +#ifdef GPAC_HAS_SPIDERMONKEY case GPAC_OTI_SCENE_VTT_MP4: { #ifndef GPAC_DISABLE_MEDIA_IMPORT @@ -147,6 +148,7 @@ static GF_Err VTT_ProcessData(GF_SceneDe #endif } break; +#endif default: return GF_BAD_PARAM;
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.