[MEncoder-users] gxf.c auto-import conflict
Jiang Hong
netex at 163.com
Wed Aug 30 12:22:07 CEST 2006
Hi,
gxf.c:
static AVRational fps_tag2avr(int32_t fps) {
extern const AVRational ff_frame_rate_tab[];
if (fps < 1 || fps > 9) fps = 9;
return ff_frame_rate_tab[9 - fps]; // values have opposite order
}
MinGW/gcc-3.4.2's ld will complain ff_frame_rate_tab cannot be auto-imported.
Changing the code to:
static AVRational fps_tag2avr(int32_t fps) {
extern const AVRational* ff_frame_rate_tab;
if (fps < 1 || fps > 9) fps = 9;
return ff_frame_rate_tab[9 - fps]; // values have opposite order
}
solved the problem.
--
Jiang Hong <netex at 163.com>
More information about the MEncoder-users
mailing list