[xiph-commits] r8770 - trunk/theora-tools/theora_transcoder
j at motherfish-iii.xiph.org
j at motherfish-iii.xiph.org
Wed Jan 19 15:32:30 PST 2005
Author: j
Date: 2005-01-19 15:32:27 -0800 (Wed, 19 Jan 2005)
New Revision: 8770
Modified:
trunk/theora-tools/theora_transcoder/avi2vp3.c
Log:
fix buffer allocation/AVI_max_video_chunk
Modified: trunk/theora-tools/theora_transcoder/avi2vp3.c
===================================================================
--- trunk/theora-tools/theora_transcoder/avi2vp3.c 2005-01-19 23:27:32 UTC (rev 8769)
+++ trunk/theora-tools/theora_transcoder/avi2vp3.c 2005-01-19 23:32:27 UTC (rev 8770)
@@ -16,7 +16,7 @@
FILE * f = fopen("outfile.vp3", "wb");
- char * buffer = malloc(32768);
+ char * buffer;
int olength;
int length;
avi_t *avifile;
@@ -33,6 +33,7 @@
double fps_numerator, fps_denominator;
avifile = AVI_open_input_file("vp31.avi", 1);
+ buffer = malloc(AVI_max_video_chunk(avifile));
frames = AVI_video_frames(avifile);
framew = AVI_video_width(avifile);
frameh = AVI_video_height(avifile);
More information about the commits
mailing list