$OpenBSD$ https://github.com/openscenegraph/osg/commit/876cb95fada9a2ea5821e6473c185338ec28a914 --- src/osgPlugins/ffmpeg/FFmpegDecoder.hpp.orig Tue Apr 19 13:40:22 2011 +++ src/osgPlugins/ffmpeg/FFmpegDecoder.hpp Fri Jul 5 10:20:17 2013 @@ -46,8 +46,13 @@ class FormatContextPtr { if (_ptr) { +#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(53, 17, 0) + OSG_NOTICE<<"Calling avformat_close_input("<<&_ptr<<")"< PacketQueue; - void findAudioStream(); - void findVideoStream(); void flushAudioQueue(); void flushVideoQueue(); bool readNextPacketNormal(); @@ -151,13 +154,13 @@ inline bool FFmpegDecoder::loop() const inline double FFmpegDecoder::creation_time() const { - if(m_format_context) return m_format_context->timestamp; + if(m_format_context) return m_format_context->start_time; else return HUGE_VAL; } inline double FFmpegDecoder::duration() const { - return double(m_format_context->duration) / AV_TIME_BASE; + return double(m_format_context->duration) / AV_TIME_BASE; } inline double FFmpegDecoder::reference()