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 29)
Currently displaying revision
29
,
Show latest
--- a/applications/generators/MPEG4/main.c +++ b/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; --- a/applications/generators/SVG/svggen.h +++ b/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_ --- a/applications/generators/X3D/main.c +++ b/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; --- a/configure +++ b/configure @@ -1277,7 +1277,6 @@ cat > $TMPC << EOF #include <inttypes.h> #define uint32_t unsigned int #define uint8_t unsigned char -#include <a52dec/mm_accel.h> #include <a52dec/a52.h> int main( void ) { return 0; } EOF --- a/modules/ac3_in/liba52_dec.c +++ b/modules/ac3_in/liba52_dec.c @@ -42,7 +42,6 @@ #define uint8_t u8 #endif -#include <a52dec/mm_accel.h> #include <a52dec/a52.h> @@ -71,7 +70,7 @@ static GF_Err AC3_AttachStream(GF_BaseDe GF_LOG(GF_LOG_DEBUG, GF_LOG_CODEC, ("[A52] Attaching stream %d\n", esd->ESID)); if (ctx->codec) a52_free(ctx->codec); - ctx->codec = a52_init(MM_ACCEL_DJBFFT); + ctx->codec = a52_init(); if (!ctx->codec) { GF_LOG(GF_LOG_ERROR, GF_LOG_CODEC, ("[A52] Error initializing decoder\n")); return GF_IO_ERR; --- a/modules/vtt_in/vtt_dec.c +++ b/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
.