Projects
Essentials
gpac
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 15
View file
gpac-0.5.0-64bit-portability.patch
Changed
@@ -1,7 +1,39 @@ -diff -urN gpac-0.5.0.svn4192.orig/applications/generators/SVG/svggen.h gpac-0.5.0.svn4192/applications/generators/SVG/svggen.h ---- gpac-0.5.0.svn4192.orig/applications/generators/SVG/svggen.h 2012-11-03 00:19:59.723621042 +0800 -+++ gpac-0.5.0.svn4192/applications/generators/SVG/svggen.h 2012-11-05 08:53:01.166895888 +0800 -@@ -190,6 +190,16 @@ +--- + applications/generators/MPEG4/main.c | 4 ++-- + applications/generators/SVG/svggen.h | 12 +++++++++++- + applications/generators/X3D/main.c | 4 ++-- + modules/vtt_in/vtt_dec.c | 2 ++ + src/bifs/field_encode.c | 1 + + src/scene_manager/encode_isom.c | 1 + + 6 files changed, 19 insertions(+), 5 deletions(-) + +Index: gpac-0.5.2/applications/generators/MPEG4/main.c +=================================================================== +--- gpac-0.5.2.orig/applications/generators/MPEG4/main.c ++++ gpac-0.5.2/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.5.2/applications/generators/SVG/svggen.h +=================================================================== +--- gpac-0.5.2.orig/applications/generators/SVG/svggen.h ++++ gpac-0.5.2/applications/generators/SVG/svggen.h +@@ -190,6 +190,16 @@ static _atts generic_attributes[] = { FILE *BeginFile(u32 type); void EndFile(FILE *f, u32 type); @@ -19,3 +51,69 @@ +void generate_laser_tables_da(GF_List *atts); #endif // _SVGGEN_H_ +Index: gpac-0.5.2/applications/generators/X3D/main.c +=================================================================== +--- gpac-0.5.2.orig/applications/generators/X3D/main.c ++++ gpac-0.5.2/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.5.2/modules/vtt_in/vtt_dec.c +=================================================================== +--- gpac-0.5.2.orig/modules/vtt_in/vtt_dec.c ++++ gpac-0.5.2/modules/vtt_in/vtt_dec.c +@@ -126,6 +126,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: + { + char start[100], end[100]; +@@ -144,6 +145,7 @@ static GF_Err VTT_ProcessData(GF_SceneDe + gf_list_del(cues); + } + break; ++#endif + + default: + return GF_BAD_PARAM; +Index: gpac-0.5.2/src/bifs/field_encode.c +=================================================================== +--- gpac-0.5.2.orig/src/bifs/field_encode.c ++++ gpac-0.5.2/src/bifs/field_encode.c +@@ -27,6 +27,7 @@ + + #include <gpac/internal/bifs_dev.h> + #include <gpac/internal/bifs_tables.h> ++#include <gpac/network.h> + #include "quant.h" + #include "script.h" + +Index: gpac-0.5.2/src/scene_manager/encode_isom.c +=================================================================== +--- gpac-0.5.2.orig/src/scene_manager/encode_isom.c ++++ gpac-0.5.2/src/scene_manager/encode_isom.c +@@ -27,6 +27,7 @@ + #include <gpac/constants.h> + #include <gpac/media_tools.h> + #include <gpac/bifs.h> ++#include <gpac/network.h> + #ifndef GPAC_DISABLE_LASER + #include <gpac/laser.h> + #include <gpac/nodes_svg.h>
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
.