[FFmpeg-soc] vsrc_ppm

Bobby Bingham uhmmmm at gmail.com
Thu Dec 20 18:30:36 CET 2007


On Thu, 20 Dec 2007 17:08:01 +0000
Robert Swain <robert.swain at gmail.com> wrote:

> On 20 Dec 2007, at 16:40, Bobby Bingham wrote:
> > On Thu, 20 Dec 2007 15:17:29 +0100
> > Vitor <vitor1001 at gmail.com> wrote:
> >> diff -u libavfilter2/vf_overlay.c libavfilter/vf_overlay.c
> >> --- libavfilter2/vf_overlay.c	2007-11-06 20:52:43.000000000
> >> +0100
> >> +++ libavfilter/vf_overlay.c	2007-12-20 13:59:45.000000000
> >> +0100
> >> @@ -141,7 +141,7 @@
> >>      if(!over->pics[1][0]) return 1;
> >>
> >>      if(over->pics[0][0]->pts == over->pics[1][0]->pts) return 2;
> >> -    return !!(over->pics[0][0]->pts < over->pics[1][0]->pts);
> >> +    return (over->pics[0][0]->pts > over->pics[1][0]->pts);
> >>  }
> >
> > Aren't these lines equivalent?
> 
> Erm, there are two ! but !!value when value is 0 or 1 anyway seems  
> pointless. If the original code is correct, it seems to me that:
> 
> !!(over->pics[0][0]->pts < over->pics[1][0]->pts)
> 
> ...is the same as...
> 
> over->pics[0][0]->pts < over->pics[1][0]->pts
> 

Ah.  Right.  I need more coffee.

> ...but Vitor changed the < to a >.
> 

Vitor's version is correct.

> What is supposed to be going on here? :)
> 
> Rob
> (I hope I didn't make a balls up there. :))


-- 
Bobby Bingham
Never trust atoms.  Or anything made of atoms.
このメールは再利用されたバイトでできている。



More information about the FFmpeg-soc mailing list