[Ffmpeg-devel] [Bug] mpegaudiodec.c and x264

Jürgen Krieger juergen
Thu Aug 24 14:32:56 CEST 2006


compiling fails with current svn version.

(
./configure --enable-pthreads --enable-libogg --enable-pp 
--enable-libgsm --enable-a52 --enable-xvid --enable-faac --enable-faad 
--enable-memalign-hack --enable-gpl --enable-mp3lame 
--extra-cflags=-I/local/include --extra-ldflags=-L/local/lib 
--extra-ldflags=-L/usr/local/lib/ --enable-dts --enable-a52bin --enable-x264
)

in current: libavcodec/mpegaudiodec.c ->

for(k=0;k<4;k++) {
n = lsf_nsf_table[tindex2][tindex][k];
sl = slen[k];
if(s1){
for(i=0;i<n;i++)
g->scale_factors[j++] = get_bits(&s->gb, sl);
}else{
for(i=0;i<n;i++)
g->scale_factors[j++] = 0;
}
}

i guess it should be:
for(k=0;k<4;k++) {
n = lsf_nsf_table[tindex2][tindex][k];
sl = slen[k];
if(sl){
for(i=0;i<n;i++)
g->scale_factors[j++] = get_bits(&s->gb, sl);
}else{
for(i=0;i<n;i++)
g->scale_factors[j++] = 0;
}
}


so:
- if(s1){
+ if(sl){



also run in problems compile x264 like mentioned in:
http://lists.debian-unofficial.org/pipermail/unofficial/2006-August/000099.html

x264.c: In function ?X264_init?:
x264.c:146: error: ?struct <anonymous>? has no member named ?i_rc_method?
x264.c:146: error: ?X264_RC_CRF? undeclared (first use in this function)
x264.c:146: error: (Each undeclared identifier is reported only once
x264.c:146: error: for each function it appears in.)
x264.c:149: error: ?struct <anonymous>? has no member named ?i_rc_method?
x264.c:149: error: ?X264_RC_CQP? undeclared (first use in this function)
x264.c:156: error: ?struct <anonymous>? has no member named ?i_rc_method?
x264.c:156: error: ?X264_RC_ABR? undeclared (first use in this function)
make[1]: *** [x264.o] Error 1





More information about the ffmpeg-devel mailing list