[xiph-commits] r8769 - trunk/theora/win32/experimental/transcoder/avi2vp3

j at motherfish-iii.xiph.org j at motherfish-iii.xiph.org
Wed Jan 19 15:27:37 PST 2005


Author: j
Date: 2005-01-19 15:27:32 -0800 (Wed, 19 Jan 2005)
New Revision: 8769

Modified:
   trunk/theora/win32/experimental/transcoder/avi2vp3/avi2vp3.c
Log:
fix buffer allocation/AVI_max_video_chunk

Modified: trunk/theora/win32/experimental/transcoder/avi2vp3/avi2vp3.c
===================================================================
--- trunk/theora/win32/experimental/transcoder/avi2vp3/avi2vp3.c	2005-01-18 18:01:39 UTC (rev 8768)
+++ trunk/theora/win32/experimental/transcoder/avi2vp3/avi2vp3.c	2005-01-19 23:27:32 UTC (rev 8769)
@@ -16,7 +16,7 @@
 
     FILE * f = fopen("outfile.vp3", "wb");
     
-    char * buffer = malloc(32768);
+    char * buffer;
     int olength;
     int length;
     avi_t *avifile;
@@ -37,6 +37,7 @@
     framew = AVI_video_width(avifile);
     frameh = AVI_video_height(avifile);
     framerate = AVI_frame_rate(avifile);
+    buffer = malloc(AVI_max_video_chunk(avifile));
     printf("Frames(%d) Video(%dx%d) %3.2f fps\n",frames,framew, frameh,framerate);
     printf("Video Compressor: %s", AVI_video_compressor(avifile));
     fps_denominator = 1000000.0F;



More information about the commits mailing list