[vorbis-dev] Rhubarber (advanced peeler)

Segher Boessenkool segher at koffie.nl
Wed Apr 2 18:11:22 PST 2003



Christopher T King wrote:
> Fixed a typo that causes all packets to be annihilated. Works good
> otherwise!
> 
> diff -ur apr-1.0/apr.c apr-1.0-new/apr.c
> --- apr-1.0/apr.c Mon Mar 31 21:48:02 2003
> +++ apr-1.0-new/apr.c Wed Apr  2 19:32:21 2003
> @@ -46,7 +46,7 @@
> 
>  void peel(ogg_packet *op)
>  {
> -       op->bytes = compute_optimal_factor(op);
> +       op->bytes *= compute_optimal_factor(op);
>  }

Oh btw, to get a real peeler, not very good but works
anyway, use

        op->bytes *= 0.8;

or so (peels to a size slightly bigger than 80% of the
original file).  Don't use too small values, it'll
sound awful.  Smaller than 0.6 is definately bad.

<p>Segher

<p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list