flag --enable-hardcoded-tables breaks compilation of git master branch #21102

Closed
opened 2025-12-04 17:19:54 +00:00 by arosella · 0 comments

git clone https://code.ffmpeg.org/FFmpeg/FFmpeg.git
cd ffmpeg
mkdir test
cd test
../configure --enable-hardcoded-tables
make
.
.
.
CC libavcodec/qcelpdec.o
HOSTCC libavcodec/qdm2_tablegen.o
In file included from src/libavcodec/tableprint_vlc.h:41,
from src/libavcodec/qdm2_tablegen.c:24:
src/libavcodec/vlc.c: In function ‘ff_vlc_init_multi_from_lengths’:
src/libavcodec/vlc.c:530:20: error: implicit declaration of function ‘av_mallocz’; did you mean ‘av_malloc’? [-Wimplicit-function-declaration]
530 | multi->table = av_mallocz(sizeof(*multi->table) << nb_bits);
| ^~~~~~~~~~
| av_malloc
src/libavcodec/vlc.c:530:18: error: assignment to ‘VLC_MULTI_ELEM *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
530 | multi->table = av_mallocz(sizeof(*multi->table) << nb_bits);
| ^
In file included from src/libavcodec/qdm2_tablegen.c:26:
src/libavcodec/qdm2_tablegen.h: In function ‘build_vlc’:
src/libavcodec/qdm2_tablegen.h:120:30: warning: pointer targets in passing argument 4 of ‘ff_vlc_init_from_lengths’ differ in signedness [-Wpointer-sign]
120 | &tab[0][1], 2, &tab[0][0], 2, 1,
| ^~~~~~~~~~
| |
| const uint8_t * {aka const unsigned char *}
src/libavcodec/vlc.c:307:44: note: expected ‘const int8_t *’ {aka ‘const signed char *’} but argument is of type ‘const uint8_t *’ {aka ‘const unsigned char *’}
307 | const int8_t *lens, int lens_wrap,
| ~~~~~~~~~~~~~~^~~~
make: *** [/home/macchinista/Sources/ffmpeg/ffbuild/common.mak:238: libavcodec/qdm2_tablegen.o] Error 1

git clone https://code.ffmpeg.org/FFmpeg/FFmpeg.git cd ffmpeg mkdir test cd test ../configure --enable-hardcoded-tables make . . . CC libavcodec/qcelpdec.o HOSTCC libavcodec/qdm2_tablegen.o In file included from src/libavcodec/tableprint_vlc.h:41, from src/libavcodec/qdm2_tablegen.c:24: src/libavcodec/vlc.c: In function ‘ff_vlc_init_multi_from_lengths’: src/libavcodec/vlc.c:530:20: error: implicit declaration of function ‘av_mallocz’; did you mean ‘av_malloc’? [-Wimplicit-function-declaration] 530 | multi->table = av_mallocz(sizeof(*multi->table) << nb_bits); | ^~~~~~~~~~ | av_malloc src/libavcodec/vlc.c:530:18: error: assignment to ‘VLC_MULTI_ELEM *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 530 | multi->table = av_mallocz(sizeof(*multi->table) << nb_bits); | ^ In file included from src/libavcodec/qdm2_tablegen.c:26: src/libavcodec/qdm2_tablegen.h: In function ‘build_vlc’: src/libavcodec/qdm2_tablegen.h:120:30: warning: pointer targets in passing argument 4 of ‘ff_vlc_init_from_lengths’ differ in signedness [-Wpointer-sign] 120 | &tab[0][1], 2, &tab[0][0], 2, 1, | ^~~~~~~~~~ | | | const uint8_t * {aka const unsigned char *} src/libavcodec/vlc.c:307:44: note: expected ‘const int8_t *’ {aka ‘const signed char *’} but argument is of type ‘const uint8_t *’ {aka ‘const unsigned char *’} 307 | const int8_t *lens, int lens_wrap, | ~~~~~~~~~~~~~~^~~~ make: *** [/home/macchinista/Sources/ffmpeg/ffbuild/common.mak:238: libavcodec/qdm2_tablegen.o] Error 1
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
FFmpeg/FFmpeg#21102
No description provided.