[FFmpeg-devel] [PATCH 2/4] avisynth: drop support of AviSynth 2.5

John Warburton john at johnwarburton.net
Tue Mar 24 21:35:58 CET 2015


On Tue, Mar 24, 2015 at 7:33 PM, Hendrik Leppkes <h.leppkes at gmail.com> wrote:
>
> On Tue, Mar 24, 2015 at 8:23 PM, Stephen Hutchinson <qyot27 at gmail.com> wrote:
> > If the user attempts to use AviSynth 2.5, an error message will
> > now tell them they need to upgrade.
>
Just had avisynth.c fail to compile from a clean tree, whereas
yesterday's compile was fine.

Complete error report is below. I'm certainly not a code expert but is
avisynth.c not finding what it would like to refer to in avisynth_c.h?

CC      libavformat/avisynth.o
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'

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);
                           ^
common.mak:57: recipe for target 'libavformat/avisynth.o' failed
make: *** [libavformat/avisynth.o] Error 1


More information about the ffmpeg-devel mailing list