List Info

Thread: FLAC 1.2.0 won't build without ogg




FLAC 1.2.0 won't build without ogg
country flaguser name
United Kingdom
2007-08-09 07:35:16
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-devxiph.org
http:
//lists.xiph.org/mailman/listinfo/flac-dev

Re: FLAC 1.2.0 won't build without ogg
country flaguser name
United States
2007-08-09 15:09:06
sorry about that... yep it's fixed in CVS HEAD already..

--- Christopher Key <cjk32cam.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-devxiph.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
_______________________________________________
Flac-dev mailing list
Flac-devxiph.org
http:
//lists.xiph.org/mailman/listinfo/flac-dev

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )