[FFmpeg-trac] #4391(undetermined:new): error in avisynth.c with mingw-w64
FFmpeg
trac at avcodec.org
Tue Mar 24 17:02:34 CET 2015
#4391: error in avisynth.c with mingw-w64
-------------------------------------+-------------------------------------
Reporter: jb_alvarado | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
The new source stops compiling by:
{{{
In file included from libavformat/avisynth.c:33:0:
./compat/avisynth/avisynth_c.h:806:27: warning: function declaration isn't
a prototype [-Wstrict-prototypes]
AVSC_INLINE AVS_Library * avs_load_library() {
^
libavformat/avisynth.c:69:23: error: unknown type name
'avs_bits_per_pixel_func'
AVSC_DECLARE_FUNC(avs_bits_per_pixel);
^
libavformat/avisynth.c:53:33: note: in definition of macro
'AVSC_DECLARE_FUNC'
#define AVSC_DECLARE_FUNC(name) name ## _func name
^
libavformat/avisynth.c:70:23: error: unknown type name
'avs_get_height_p_func'
AVSC_DECLARE_FUNC(avs_get_height_p);
^
libavformat/avisynth.c:53:33: note: in definition of macro
'AVSC_DECLARE_FUNC'
#define AVSC_DECLARE_FUNC(name) name ## _func name
^
libavformat/avisynth.c:71:23: error: unknown type name
'avs_get_pitch_p_func'
AVSC_DECLARE_FUNC(avs_get_pitch_p);
^
libavformat/avisynth.c:53:33: note: in definition of macro
'AVSC_DECLARE_FUNC'
#define AVSC_DECLARE_FUNC(name) name ## _func name
^
libavformat/avisynth.c:72:23: error: unknown type name
'avs_get_read_ptr_p_func'
AVSC_DECLARE_FUNC(avs_get_read_ptr_p);
^
libavformat/avisynth.c:53:33: note: in definition of macro
'AVSC_DECLARE_FUNC'
#define AVSC_DECLARE_FUNC(name) name ## _func name
^
libavformat/avisynth.c:73:23: error: unknown type name
'avs_get_row_size_p_func'
AVSC_DECLARE_FUNC(avs_get_row_size_p);
^
libavformat/avisynth.c:53:33: note: in definition of macro
'AVSC_DECLARE_FUNC'
#define AVSC_DECLARE_FUNC(name) name ## _func name
^
libavformat/avisynth.c:74:23: error: unknown type name 'avs_is_yv24_func'
AVSC_DECLARE_FUNC(avs_is_yv24);
^
libavformat/avisynth.c:53:33: note: in definition of macro
'AVSC_DECLARE_FUNC'
#define AVSC_DECLARE_FUNC(name) name ## _func name
^
libavformat/avisynth.c:75:23: error: unknown type name 'avs_is_yv16_func'
AVSC_DECLARE_FUNC(avs_is_yv16);
^
libavformat/avisynth.c:53:33: note: in definition of macro
'AVSC_DECLARE_FUNC'
#define AVSC_DECLARE_FUNC(name) name ## _func name
^
libavformat/avisynth.c:76:23: error: unknown type name 'avs_is_yv411_func'
AVSC_DECLARE_FUNC(avs_is_yv411);
^
libavformat/avisynth.c:53:33: note: in definition of macro
'AVSC_DECLARE_FUNC'
#define AVSC_DECLARE_FUNC(name) name ## _func name
^
libavformat/avisynth.c:77:23: error: unknown type name 'avs_is_y8_func'
AVSC_DECLARE_FUNC(avs_is_y8);
^
libavformat/avisynth.c:53:33: note: in definition of macro
'AVSC_DECLARE_FUNC'
#define AVSC_DECLARE_FUNC(name) name ## _func name
^
libavformat/avisynth.c: In function 'avisynth_load_library':
libavformat/avisynth.c:123:26: warning: assignment makes integer from
pointer without a cast
avs_library.name = \
^
libavformat/avisynth.c:143:5: note: in expansion of macro 'LOAD_AVS_FUNC'
LOAD_AVS_FUNC(avs_bits_per_pixel, 0);
^
libavformat/avisynth.c:123:26: warning: assignment makes integer from
pointer without a cast
avs_library.name = \
^
libavformat/avisynth.c:144:5: note: in expansion of macro 'LOAD_AVS_FUNC'
LOAD_AVS_FUNC(avs_get_height_p, 0);
^
libavformat/avisynth.c:123:26: warning: assignment makes integer from
pointer without a cast
avs_library.name = \
^
libavformat/avisynth.c:145:5: note: in expansion of macro 'LOAD_AVS_FUNC'
LOAD_AVS_FUNC(avs_get_pitch_p, 0);
^
libavformat/avisynth.c:123:26: warning: assignment makes integer from
pointer without a cast
avs_library.name = \
^
libavformat/avisynth.c:146:5: note: in expansion of macro 'LOAD_AVS_FUNC'
LOAD_AVS_FUNC(avs_get_read_ptr_p, 0);
^
libavformat/avisynth.c:123:26: warning: assignment makes integer from
pointer without a cast
avs_library.name = \
^
libavformat/avisynth.c:147:5: note: in expansion of macro 'LOAD_AVS_FUNC'
LOAD_AVS_FUNC(avs_get_row_size_p, 0);
^
libavformat/avisynth.c:123:26: warning: assignment makes integer from
pointer without a cast
avs_library.name = \
^
libavformat/avisynth.c:148:5: note: in expansion of macro 'LOAD_AVS_FUNC'
LOAD_AVS_FUNC(avs_is_yv24, 0);
^
libavformat/avisynth.c:123:26: warning: assignment makes integer from
pointer without a cast
avs_library.name = \
^
libavformat/avisynth.c:149:5: note: in expansion of macro 'LOAD_AVS_FUNC'
LOAD_AVS_FUNC(avs_is_yv16, 0);
^
libavformat/avisynth.c:123:26: warning: assignment makes integer from
pointer without a cast
avs_library.name = \
^
libavformat/avisynth.c:150:5: note: in expansion of macro 'LOAD_AVS_FUNC'
LOAD_AVS_FUNC(avs_is_yv411, 0);
^
libavformat/avisynth.c:123:26: warning: assignment makes integer from
pointer without a cast
avs_library.name = \
^
libavformat/avisynth.c:151:5: note: in expansion of macro 'LOAD_AVS_FUNC'
LOAD_AVS_FUNC(avs_is_y8, 0);
^
libavformat/avisynth.c: In function 'avisynth_read_packet_video':
libavformat/avisynth.c:463:9: error: called object is not a function or
function pointer
if (avs_library.avs_is_yv24(avs->vi))
^
libavformat/avisynth.c:465:14: error: called object is not a function or
function pointer
else if (avs_library.avs_is_yv16(avs->vi))
^
libavformat/avisynth.c:467:14: error: called object is not a function or
function pointer
else if (avs_library.avs_is_yv411(avs->vi))
^
libavformat/avisynth.c:469:14: error: called object is not a function or
function pointer
else if (avs_library.avs_is_y8(avs->vi))
^
libavformat/avisynth.c:472:16: error: called object is not a function or
function pointer
bits = avs_library.avs_bits_per_pixel(avs->vi);
^
libavformat/avisynth.c:505:17: error: called object is not a function or
function pointer
src_p = avs_library.avs_get_read_ptr_p(frame, plane);
^
libavformat/avisynth.c:506:17: error: called object is not a function or
function pointer
pitch = avs_library.avs_get_pitch_p(frame, plane);
^
libavformat/avisynth.c:512:27: error: called object is not a function or
function pointer
rowsize = avs_library.avs_get_row_size_p(frame, plane);
^
libavformat/avisynth.c:513:27: error: called object is not a function or
function pointer
planeheight = avs_library.avs_get_height_p(frame, plane);
}}}
Yesterday it was working. Build system is:
msys2, mingw-w64 32 and 64 bit, gcc 4.9.2
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4391>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list