[Ffmpeg-cvslog] r6284 - trunk/libavcodec/eval.c
Panagiotis Issaris
takis.issaris
Sun Sep 17 11:54:05 CEST 2006
Hi,
On zo, 2006-09-17 at 10:52 +0200, michael wrote:
> @@ -72,6 +94,18 @@
> /* number */
> d= strtod(p->s, &next);
> if(next != p->s){
> + if(*next >= 'E' && *next <= 'z'){
Is *next == 'E' possible? I thought strtod() already parsed
E?
But maybe I just do not yet understand the code. I hadn't
ever before seen the array init code you are using in this
patch either :)
> + int e= si_prefixes[*next - 'E'];
> + if(e){
> + if(next[1] == 'i'){
> + d*= pow( 2, e/0.3);
> + next+=2;
> + }else{
> + d*= pow(10, e);
> + next++;
> + }
> + }
> + }
> p->s= next;
> return d;
> }
With friendly regards,
Takis
More information about the ffmpeg-cvslog
mailing list