[Flac-dev] FLAC 1.2.0 won't build without ogg

Josh Coalson xflac at yahoo.com
Thu Aug 9 13:09:06 PDT 2007


sorry about that... yep it's fixed in CVS HEAD already..

--- Christopher Key <cjk32 at cam.ac.uk> wrote:

> Hello,
> 
> Apologies if this has already been covered.  I'm trying to compile
> FLAC
> 1.2.0 under FreeBSD without ogg support:
> 
> when I run gmake, I get:
> 
> encode.c: In function `convert_to_seek_table_template':
> encode.c:2181: error: structure has no member named `use_ogg'
> 
> the following appears to fix the problem for me, although I've not
> checked it fully:
> 
> --- flac-1.2.0/src/flac/encode.c.old    Tue Jul 10 03:10:44 2007
> +++ flac-1.2.0/src/flac/encode.c        Thu Aug  9 13:27:20 2007
> @@ -2178,10 +2178,15 @@
>  
>         if(num_requested_seek_points < 0) {
>                 /*@@@@@@ workaround ogg bug: too many seekpoints
> makes
> table not fit in one page */
> -               if(e->use_ogg && e->total_samples_to_encode > 0 &&
> e->total_samples_to_encode / e->sample_rate / 10 > 230)
> +#if FLAC__HAS_OGG
> +               if(e->use_ogg && e->total_samples_to_encode > 0 &&
> e->total_samples_to_encode / e->sample_rate / 10 > 230) {
>                         requested_seek_points = "230x;";
> +               }
>                 else
> +#endif
> +               {
>                         requested_seek_points = "10s;";
> +               }
>                 num_requested_seek_points = 1;
>         }
> 
> 
> Regards,
> 
> Christopher Key
> 
> _______________________________________________
> Flac-dev mailing list
> Flac-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/flac-dev
> 



       
____________________________________________________________________________________
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. 
http://mobile.yahoo.com/go?refer=1GNXIC


More information about the Flac-dev mailing list