[FFmpeg-devel] [PATCH] lavf/avisynth: fix compilation, remove bundled headers

Jan Ehrhardt phpdev at ehrhardt.nl
Wed Mar 25 10:16:28 CET 2015


Martin Herkt in gmane.comp.video.ffmpeg.devel (Tue, 24 Mar 2015 19:40:33
+0100):
>Merge commit 1530732 broke compilation with AviSynth enabled.

I ran into the same problem when cross-compiling for Windows on Ubuntu:

CC	libavformat/avisynth.o
In file included from libavformat/avisynth.c:33:0:
./compat/avisynth/avisynth_c.h: In function 'avs_is_same_colorspace':
./compat/avisynth/avisynth_c.h:363:17: error: implicit declaration of
function 'avs_is_yv12' [-Werror=implicit-function-declaration]
                 || (avs_is_yv12(x) && avs_is_yv12(y));
                 ^
./compat/avisynth/avisynth_c.h: In function 'avs_get_pitch':
./compat/avisynth/avisynth_c.h:404:9: error: implicit declaration of
function 'avs_get_pitch_p' [-Werror=implicit-function-declaration]
         return avs_get_pitch_p(p, 0);}
         ^
./compat/avisynth/avisynth_c.h: In function 'avs_get_read_ptr':
./compat/avisynth/avisynth_c.h:419:9: error: implicit declaration of
function 'avs_get_read_ptr_p' [-Werror=implicit-function-declaration]
         return avs_get_read_ptr_p(p, 0);}
         ^
./compat/avisynth/avisynth_c.h:419:9: warning: return makes pointer from
integer without a cast
./compat/avisynth/avisynth_c.h: In function 'avs_get_write_ptr':
./compat/avisynth/avisynth_c.h:426:9: error: implicit declaration of
function 'avs_get_write_ptr_p' [-Werror=implicit-function-declaration]
         return avs_get_write_ptr_p(p, 0);}
         ^
./compat/avisynth/avisynth_c.h:426:9: warning: return makes pointer from
integer without a cast
./compat/avisynth/avisynth_c.h: At top level:
./compat/avisynth/avisynth_c.h:780:27: warning: function declaration
isn't a prototype [-Wstrict-prototypes]
 AVSC_INLINE AVS_Library * avs_load_library() {
                           ^
In file included from libavformat/avisynth.c:34:0:
./compat/avisynth/avisynth_c_25.h: In function 'avs_get_row_size_p_25':
./compat/avisynth/avisynth_c_25.h:51:31: error: 'AVS_FRAME_ALIGN'
undeclared (first use in this function)
             r = ((p->row_size+AVS_FRAME_ALIGN-1)&(~(AVS_FRAME_ALIGN-1))
)>>1; // Aligned rowsize
                               ^
./compat/avisynth/avisynth_c_25.h:51:31: note: each undeclared
identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
make: *** [libavformat/avisynth.o] Error 1
make: *** Waiting for unfinished jobs....

Jan



More information about the ffmpeg-devel mailing list