[osg-users] fail to compile osg 3.4.0 with latest ffmpeg

广州刘丹 139250065 at qq.com
Thu Dec 10 19:50:17 PST 2015


Hi:

    All ! I cloned ffmpeg from https://github.com/FFmpeg/FFmpeg.git

After config osg with cmake-gui, when I run make, it reports below erros:

/root/osg/OpenSceneGraph-3.4.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp: In member function ‘void osgFFmpeg::FFmpegDecoderAudio::open(AVStream, osgFFmpeg::FFmpegParameters)’:
/root/osg/OpenSceneGraph-3.4.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:230:20: error: ‘AVCodecContext’ has no member named ‘get_buffer’
m_context->get_buffer = avcodec_default_get_buffer;
^
/root/osg/OpenSceneGraph-3.4.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:230:33: error: ‘avcodec_default_get_buffer’ was not declared in this scope
m_context->get_buffer = avcodec_default_get_buffer;
^
/root/osg/OpenSceneGraph-3.4.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:231:20: error: ‘AVCodecContext’ has no member named ‘release_buffer’
m_context->release_buffer = avcodec_default_release_buffer;
^
/root/osg/OpenSceneGraph-3.4.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:231:37: error: ‘avcodec_default_release_buffer’ was not declared in this scope
m_context->release_buffer = avcodec_default_release_buffer;
^
make[2]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoderAudio.o] Error 1
make[1]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/all] Error 2
make: *** [all] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20151211/348014ad/attachment-0002.htm>


More information about the osg-users mailing list