[xiph-commits] r11297 - experimental/derf/theora-exp/lib
msmith at svn.xiph.org
msmith at svn.xiph.org
Thu Apr 27 11:04:27 PDT 2006
Author: msmith
Date: 2006-04-27 11:04:24 -0700 (Thu, 27 Apr 2006)
New Revision: 11297
Modified:
experimental/derf/theora-exp/lib/decinfo.c
Log:
Return TH_EBADHEADER if the header specifies the reserved pixel format.
Modified: experimental/derf/theora-exp/lib/decinfo.c
===================================================================
--- experimental/derf/theora-exp/lib/decinfo.c 2006-04-27 14:59:03 UTC (rev 11296)
+++ experimental/derf/theora-exp/lib/decinfo.c 2006-04-27 18:04:24 UTC (rev 11297)
@@ -82,6 +82,7 @@
_info->keyframe_granule_shift=(int)val;
theora_read(_opb,2,&val);
_info->pixel_fmt=(th_pixel_fmt)val;
+ if(_info->pixel_fmt==TH_PF_RSVD)return TH_EBADHEADER;
if(theora_read(_opb,3,&val)<0||val!=0)return TH_EBADHEADER;
return 0;
}
More information about the commits
mailing list