Robert Osfield writes:

> Hi Alberto,
>
> Thanks for the detective work.  What I have gone for is:
>
> #if LIBAVCODEC_VERSION_MAJOR >= 53 || \
>     (LIBAVCODEC_VERSION_MAJOR==52 && LIBAVCODEC_VERSION_MINOR>=49)
>
>     #include <pixdesc.h>
>     inline PixelFormat osg_av_get_pix_fmt(const char *name) { return
> av_get_pix_fmt(name); }
>
> #else
>     inline PixelFormat osg_av_get_pix_fmt(const char *name) { return
> avcodec_get_pix_fmt(name); }
> #endif
>
> I have added this to the FFmpegParameters.cpp file.  It's now checked
> into svn/trunk.  Could you please do an svn update and let me know how
> you get on.

It works. Thanks!

-- 
Alberto

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to