[xiph-commits] r13945 - trunk/theora/lib/enc
msmith at svn.xiph.org
msmith at svn.xiph.org
Tue Oct 9 07:41:01 PDT 2007
Author: msmith
Date: 2007-10-09 07:41:01 -0700 (Tue, 09 Oct 2007)
New Revision: 13945
Modified:
trunk/theora/lib/enc/encoder_toplevel.c
Log:
Allocate enough space for our motion vectors; use the right type when deciding
how much space to allocate.
This fixes some very rare encoder crashes when we need to encode a very large
number of motion vectors.
Modified: trunk/theora/lib/enc/encoder_toplevel.c
===================================================================
--- trunk/theora/lib/enc/encoder_toplevel.c 2007-10-09 11:08:27 UTC (rev 13944)
+++ trunk/theora/lib/enc/encoder_toplevel.c 2007-10-09 14:41:01 UTC (rev 13945)
@@ -254,7 +254,7 @@
sizeof(*cpi->ModeList));
cpi->MVList =
_ogg_malloc(cpi->pb.UnitFragments*
- sizeof(cpi->MVList));
+ sizeof(*cpi->MVList));
cpi->DCT_codes =
_ogg_malloc(64*
sizeof(*cpi->DCT_codes));
More information about the commits
mailing list