[xiph-commits] r10957 - trunk/theora/lib
tterribe at svn.xiph.org
tterribe at svn.xiph.org
Sat Feb 25 14:49:42 PST 2006
Author: tterribe
Date: 2006-02-25 14:49:40 -0800 (Sat, 25 Feb 2006)
New Revision: 10957
Modified:
trunk/theora/lib/encoder_toplevel.c
Log:
Check the pixelformat during init and fail cleanly if passed an unsupported one.
Currently only 4:2:0 modes are supported in mainline.
Modified: trunk/theora/lib/encoder_toplevel.c
===================================================================
--- trunk/theora/lib/encoder_toplevel.c 2006-02-25 01:00:19 UTC (rev 10956)
+++ trunk/theora/lib/encoder_toplevel.c 2006-02-25 22:49:40 UTC (rev 10957)
@@ -774,6 +774,8 @@
CP_INSTANCE *cpi;
memset(th, 0, sizeof(*th));
+ /*Currently only the 4:2:0 format is supported.*/
+ if(c->pixelformat!=OC_PF_420)return OC_IMPL;
th->internal_encode=cpi=_ogg_calloc(1,sizeof(*cpi));
c->version_major=VERSION_MAJOR;
More information about the commits
mailing list