[Libav-user] error: ‘AVCodecContext’ has no member named ‘get_buffer’ when compile osg 3.4.0
广州刘丹
139250065 at qq.com
Fri Dec 11 05:58:46 CET 2015
When I compile osg, make reports below errors. From which version, AVCodecContext has no functions: get_buffer, release_buffer? And how to resolve this problem?
/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://ffmpeg.org/pipermail/libav-user/attachments/20151211/0cb0dd5c/attachment.html>
More information about the Libav-user
mailing list