Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Hughes <khughes@pacific.edu>2008-02-03 21:50:03 +0300
committerKen Hughes <khughes@pacific.edu>2008-02-03 21:50:03 +0300
commitab662ae85c4c9d3a2e28f1c26926934708f57482 (patch)
treec8cbaefc695d3dcbd928b212f3c971f1b7585f72 /source/blender/avi
parent91439e7604ccb3faaaa55b80a9fb7e185842753e (diff)
More fixes for gcc warnings.
Diffstat (limited to 'source/blender/avi')
-rw-r--r--source/blender/avi/intern/avi.c2
-rw-r--r--source/blender/avi/intern/endian.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/avi/intern/avi.c b/source/blender/avi/intern/avi.c
index 7e3d7ac6133..da51c00c196 100644
--- a/source/blender/avi/intern/avi.c
+++ b/source/blender/avi/intern/avi.c
@@ -632,7 +632,7 @@ AviError AVI_open_movie (char *name, AviMovie *movie) {
}
void *AVI_read_frame (AviMovie *movie, AviFormat format, int frame, int stream) {
- int cur_frame, temp, i, rewind=1;
+ int cur_frame=-1, temp, i=0, rewind=1;
void *buffer;
/* Retrieve the record number of the desired frame in the index
diff --git a/source/blender/avi/intern/endian.c b/source/blender/avi/intern/endian.c
index 152530dac0d..2ebbd5d4975 100644
--- a/source/blender/avi/intern/endian.c
+++ b/source/blender/avi/intern/endian.c
@@ -50,6 +50,7 @@
#define WORDS_BIGENDIAN
#endif
+#ifdef WORDS_BIGENDIAN
static void invert (int *num) {
int new=0,i,j;
@@ -79,6 +80,7 @@ static void Ichunk (AviChunk *chunk) {
invert (&chunk->fcc);
invert (&chunk->size);
}
+#endif
#ifdef WORDS_BIGENDIAN
static void Ilist (AviList *list){