Changeset 2099 for trunk/packages


Ignore:
Timestamp:
Feb 17, 2011, 9:33:00 PM (14 years ago)
Author:
ldelgass
Message:

Add check for deprecated av_alloc_format_context in libavformat as a fallback
to avformat_alloc_context. RpAvTranslate?.cpp in nanovis will use the older
function if the newer one isn't found, but the configure check was preventing
LIBS (and FF_LIB_SPEC in the nanovis Makefile) from having -lavformat added
when only the older function is present.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/configure.in

    r2091 r2099  
    257257
    258258AC_CHECK_LIB([avcodec], [avcodec_alloc_frame])
    259 AC_CHECK_LIB([avformat], [avformat_alloc_context])
     259# Fallback to deprecated av_alloc_format_context if avformat_alloc_context isn't found
     260AC_CHECK_LIB([avformat], [avformat_alloc_context], [],
     261    AC_CHECK_LIB([avformat], [av_alloc_format_context], [],
     262        [AC_MSG_WARN([libavformat not usable])]))
    260263AC_CHECK_LIB([avutil], [av_free])
    261264AC_CHECK_FUNCS([img_convert])
Note: See TracChangeset for help on using the changeset viewer.