[xiph-commits] r15216 - trunk/theora/lib/enc

tterribe at svn.xiph.org tterribe at svn.xiph.org
Thu Aug 28 11:27:16 PDT 2008


Author: tterribe
Date: 2008-08-28 11:27:16 -0700 (Thu, 28 Aug 2008)
New Revision: 15216

Modified:
   trunk/theora/lib/enc/encoder_toplevel.c
Log:
Set quantization parameters to default values when an empty buffer is passed
 with TH_ENCCTL_SET_QUANT_PARAMS.


Modified: trunk/theora/lib/enc/encoder_toplevel.c
===================================================================
--- trunk/theora/lib/enc/encoder_toplevel.c	2008-08-28 18:04:15 UTC (rev 15215)
+++ trunk/theora/lib/enc/encoder_toplevel.c	2008-08-28 18:27:16 UTC (rev 15216)
@@ -1374,6 +1374,7 @@
         return TH_EINVAL;
       }
 
+      if(buf==NULL)buf=&TH_VP31_QUANT_INFO;
       memcpy(&pbi->quant_info, buf, sizeof(th_quant_info));
       InitQTables(pbi);
 



More information about the commits mailing list