[xiph-commits] r12903 - trunk/theora/lib/dec
giles at svn.xiph.org
giles at svn.xiph.org
Mon Apr 30 12:30:41 PDT 2007
Author: giles
Date: 2007-04-30 12:30:40 -0700 (Mon, 30 Apr 2007)
New Revision: 12903
Modified:
trunk/theora/lib/dec/decinfo.c
Log:
Loosen the bitstream version checking to match the older code and
specification: We expect general playback compatibility regardless
of the subminor version, and accept earlier minors under the same
minor as backward-compatible.
Modified: trunk/theora/lib/dec/decinfo.c
===================================================================
--- trunk/theora/lib/dec/decinfo.c 2007-04-30 15:54:00 UTC (rev 12902)
+++ trunk/theora/lib/dec/decinfo.c 2007-04-30 19:30:40 UTC (rev 12903)
@@ -51,11 +51,11 @@
_info->version_minor=(unsigned char)val;
theora_read(_opb,8,&val);
_info->version_subminor=(unsigned char)val;
+ /*verify we can parse this bitstream version.
+ We accept earlier minors and all subminors, by spec*/
if(_info->version_major>TH_VERSION_MAJOR||
_info->version_major==TH_VERSION_MAJOR&&
- (_info->version_minor>TH_VERSION_MINOR||
- _info->version_minor==TH_VERSION_MINOR&&
- _info->version_subminor>TH_VERSION_SUB)){
+ _info->version_minor>TH_VERSION_MINOR){
return TH_EVERSION;
}
/*Read the encoded frame description.*/
More information about the commits
mailing list