Thanks Nick, change now merged and submitted to svn/trunk.
On 21 March 2013 11:24, nick black <[email protected]> wrote: > Hey there! avcodec_open() has been deprecated for some time, and indeed has > been removed in the most recent versions of libavcodec/ffmpeg. You're > already using avcodec_open2() elsewhere, but one appears to have been > missed. The change is trivial: > > [skynet](0) $ svn diff > Index: src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp > =================================================================== > --- src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp (revision 13355) > +++ src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp (working copy) > @@ -109,7 +109,7 @@ > // m_context->flags |= CODEC_FLAG_TRUNCATED; > > // Open codec > - if (avcodec_open(m_context, p_codec) < 0) > + if (avcodec_open2(m_context, p_codec, NULL) < 0) > throw std::runtime_error("avcodec_open() failed"); > } > > [skynet](0) $ > > I've applied similar changes this year to many other packages, including > cheese, blender, linphone, ad nauseam. It's been tested by verifying that > with my patch, OSG builds against the newest libavcodec and ffmpeg, whereas > otherwise it does not. > > The modified src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp is attached. It > originates in svn trunk revision 13355. Thanks! > > -- > nick black http://www.sprezzatech.com -- unix and hpc consulting > to make an apple pie from scratch, you need first invent a universe. > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
