As requested, attached is a proposition of a patch that avoids using
macro in macro when computing the version info of libav libs.
With this patch applied, the headers compile fine with Visual Studio.
Check in particular the modifications to the configure script, long
time since I didn't touch any shell script ;)
On my local tree (on mingw), it seems to work fine.

hope that helps,

Yann.

On Mon, Feb 25, 2008 at 3:39 AM, mvplayer <[EMAIL PROTECTED]> wrote:
> Could you submit your patch here?
>  I faced the same problem as yours
>
>  Thanks
>
>
>
>  On Sat, Feb 23, 2008 at 7:47 PM, Xawotihs <[EMAIL PROTECTED]> wrote:
>
>  > Hello,
>  >
>  > For my directshow splitter, I'm currently compiling the HEAD of ffmpeg
>  > with mingw under windows and link libavutil, libavcodec and
>  > libavformat libs with my filter code using visual studio 2008. Since
>  > revision 12154 of avutil.h, avcodec.h and avformat.h those headers
>  > don't compile anymore using visual studio because of the usage of
>  > macro in a macro call :
>  >
>  > 1>e:\projects\ffmpeg\libavutil\log.h(41) : warning C4003: not enough
>  > actual parameters for macro 'AV_VERSION_INT_3'
>  > 1>e:\projects\ffmpeg\libavutil\log.h(41) : fatal error C1012:
>  > unmatched parenthesis : missing ')'
>  >
>  > So, I know that you guys are far from being fan of the visual studio
>  > compiler, but I think I read somewhere that you wanted people to still
>  > be able to link avlibs with it ...
>  >
>  > So, my question is the following, do you want to fix this header
>  > problem or not realy ?
>  > - if you do, I can try to provide you with a patch fixing it
>  > - if you don't I will have to either code and maintain my own headers
>  > to use your libs or try to link my directshow filter with mingw ...
>  >
>  > Thx for your time.
>  >
>  >
>  > --
>  > ----------------------------------------
>  > Inspired by http://www.mvplayer.net
>
>
> _______________________________________________
>  libav-user mailing list
>  [email protected]
>  https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>

Attachment: header-version.patch
Description: Binary data

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to