add new boxblur plugin, mods to videoscope, fix segv for menu btns kfrm-tweak/kfrm...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / filegif.C
index 73c3d8e5bb31c17de6b0f53de75ccceac6e83502..bb26762bef07094251db75deeaea1b000230bcc6 100644 (file)
@@ -25,7 +25,6 @@
 #include "filegif.h"
 #include "gif_lib.h"
 #include "mainerror.h"
-#include "interlacemodes.h"
 #include "vframe.h"
 
 #include <stdlib.h>
 #include <fcntl.h>
 #include <string.h>
 
+//from "getarg.h"
+extern "C"
+int GifQuantizeBuffer(unsigned int Width, unsigned int Height,
+                   int *ColorMapSize, GifByteType * RedInput,
+                   GifByteType * GreenInput, GifByteType * BlueInput,
+                   GifByteType * OutputBuffer,
+                   GifColorType * OutputColorMap);
+
 FileGIF::FileGIF(Asset *asset, File *file)
  : FileBase(asset, file)
 {
@@ -171,7 +178,7 @@ int FileGIF::open_gif()
                if( height ) asset->height = height;
                asset->layers = 1;
                if( !asset->frame_rate )
-                       asset->frame_rate = 1;
+                       asset->frame_rate = 10;
                asset->video_data = 1;
                row_size = gif_file->SWidth * sizeof(GifPixelType);
                bg = (GifRowType)malloc(row_size);
@@ -186,11 +193,6 @@ int FileGIF::open_gif()
                result = scan_gif();
                asset->video_length = file_pos.size();
        }
-       if( !result ) {
-               asset->video_data = 1;
-               if( !asset->frame_rate )
-                       asset->frame_rate = 10;
-       }
        return result;
 }