[xiph-commits] r16411 - branches/theora-thusnelda/lib/enc
tterribe at svn.xiph.org
tterribe at svn.xiph.org
Mon Aug 3 23:48:30 PDT 2009
Author: tterribe
Date: 2009-08-03 23:48:30 -0700 (Mon, 03 Aug 2009)
New Revision: 16411
Modified:
branches/theora-thusnelda/lib/enc/encode.c
Log:
Actually derefernce the buffer, not the stack.
Modified: branches/theora-thusnelda/lib/enc/encode.c
===================================================================
--- branches/theora-thusnelda/lib/enc/encode.c 2009-08-04 06:23:05 UTC (rev 16410)
+++ branches/theora-thusnelda/lib/enc/encode.c 2009-08-04 06:48:30 UTC (rev 16411)
@@ -1345,7 +1345,7 @@
long bitrate;
int reset;
if(_enc==NULL||_buf==NULL)return TH_EFAULT;
- bitrate=*(long *)bitrate;
+ bitrate=*(long *)_buf;
if(bitrate<=0)return TH_EINVAL;
reset=_enc->state.info.target_bitrate<=0;
_enc->state.info.target_bitrate=bitrate>INT_MAX?INT_MAX:bitrate;
More information about the commits
mailing list