Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Scanning dependencies of target osg-ffmpeg-videoplayer
[ 0%] Building CXX object extern/osg-ffmpeg-videoplayer/CMakeFiles/osg-ffmpeg-videoplayer.dir/videostate.cpp.o
/home/marc/OpenMW/openmw/extern/osg-ffmpeg-videoplayer/videostate.cpp: In function ‘int Video::our_get_buffer(AVCodecContext*, AVFrame*, int)’:
/home/marc/OpenMW/openmw/extern/osg-ffmpeg-videoplayer/videostate.cpp:355:5: error: ‘AVBufferRef’ was not declared in this scope
AVBufferRef *ref;
^
/home/marc/OpenMW/openmw/extern/osg-ffmpeg-videoplayer/videostate.cpp:355:18: error: ‘ref’ was not declared in this scope
AVBufferRef *ref;
^
/home/marc/OpenMW/openmw/extern/osg-ffmpeg-videoplayer/videostate.cpp:355:18: note: suggested alternative:
In file included from /usr/include/boost/thread/detail/thread.hpp:27:0,
from /usr/include/boost/thread/thread_only.hpp:22,
from /usr/include/boost/thread/thread.hpp:12,
from /usr/include/boost/thread.hpp:13,
from /home/marc/OpenMW/openmw/extern/osg-ffmpeg-videoplayer/videostate.hpp:6,
from /home/marc/OpenMW/openmw/extern/osg-ffmpeg-videoplayer/videostate.cpp:1:
/usr/include/boost/ref.hpp:64:63: note: ‘boost::ref’
template<class T> inline reference_wrapper<T> BOOST_REF_CONST ref(T & t)
^
/home/marc/OpenMW/openmw/extern/osg-ffmpeg-videoplayer/videostate.cpp:356:56: error: ‘avcodec_default_get_buffer2’ was not declared in this scope
int ret = avcodec_default_get_buffer2(c, pic, flags);
^
/home/marc/OpenMW/openmw/extern/osg-ffmpeg-videoplayer/videostate.cpp:360:91: error: ‘AVFrame’ has no member named ‘buf’
ref = av_buffer_create((uint8_t *)pic->opaque, sizeof(int64_t), our_free_buffer, pic->buf[0], flags);
^
/home/marc/OpenMW/openmw/extern/osg-ffmpeg-videoplayer/videostate.cpp:360:104: error: ‘av_buffer_create’ was not declared in this scope
ref = av_buffer_create((uint8_t *)pic->opaque, sizeof(int64_t), our_free_buffer, pic->buf[0], flags);
^
/home/marc/OpenMW/openmw/extern/osg-ffmpeg-videoplayer/videostate.cpp:361:10: error: ‘AVFrame’ has no member named ‘buf’
pic->buf[0] = ref;
^
/home/marc/OpenMW/openmw/extern/osg-ffmpeg-videoplayer/videostate.cpp: In function ‘void Video::our_free_buffer(void*, uint8_t*)’:
/home/marc/OpenMW/openmw/extern/osg-ffmpeg-videoplayer/videostate.cpp:366:5: error: ‘AVBufferRef’ was not declared in this scope
AVBufferRef *ref = (AVBufferRef *)opaque;
^
/home/marc/OpenMW/openmw/extern/osg-ffmpeg-videoplayer/videostate.cpp:366:18: error: ‘ref’ was not declared in this scope
AVBufferRef *ref = (AVBufferRef *)opaque;
^
/home/marc/OpenMW/openmw/extern/osg-ffmpeg-videoplayer/videostate.cpp:366:18: note: suggested alternative:
In file included from /usr/include/boost/thread/detail/thread.hpp:27:0,
from /usr/include/boost/thread/thread_only.hpp:22,
from /usr/include/boost/thread/thread.hpp:12,
from /usr/include/boost/thread.hpp:13,
from /home/marc/OpenMW/openmw/extern/osg-ffmpeg-videoplayer/videostate.hpp:6,
from /home/marc/OpenMW/openmw/extern/osg-ffmpeg-videoplayer/videostate.cpp:1:
/usr/include/boost/ref.hpp:64:63: note: ‘boost::ref’
template<class T> inline reference_wrapper<T> BOOST_REF_CONST ref(T & t)
^
/home/marc/OpenMW/openmw/extern/osg-ffmpeg-videoplayer/videostate.cpp:366:38: error: expected primary-expression before ‘)’ token
AVBufferRef *ref = (AVBufferRef *)opaque;
^
/home/marc/OpenMW/openmw/extern/osg-ffmpeg-videoplayer/videostate.cpp:366:39: error: expected ‘;’ before ‘opaque’
AVBufferRef *ref = (AVBufferRef *)opaque;
^
/home/marc/OpenMW/openmw/extern/osg-ffmpeg-videoplayer/videostate.cpp:367:25: error: ‘av_buffer_unref’ was not declared in this scope
av_buffer_unref(&ref);
^
/home/marc/OpenMW/openmw/extern/osg-ffmpeg-videoplayer/videostate.cpp: In member function ‘int Video::VideoState::stream_open(int, AVFormatContext*)’:
/home/marc/OpenMW/openmw/extern/osg-ffmpeg-videoplayer/videostate.cpp:586:19: error: ‘AVCodecContext’ has no member named ‘get_buffer2’
codecCtx->get_buffer2 = our_get_buffer;
^
make[2]: *** [extern/osg-ffmpeg-videoplayer/CMakeFiles/osg-ffmpeg-videoplayer.dir/videostate.cpp.o] Error 1
make[1]: *** [extern/osg-ffmpeg-videoplayer/CMakeFiles/osg-ffmpeg-videoplayer.dir/all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.