diff --git a/extern/osg-ffmpeg-videoplayer/videostate.cpp b/extern/osg-ffmpeg-videoplayer/videostate.cpp index 0f3a48faa5..ff1d9c6517 100644 --- a/extern/osg-ffmpeg-videoplayer/videostate.cpp +++ b/extern/osg-ffmpeg-videoplayer/videostate.cpp @@ -676,7 +676,7 @@ int VideoState::stream_open(int stream_index, AVFormatContext *pFormatCtx) } mAudioDecoder = mAudioFactory->createDecoder(this); - if (!mAudioDecoder.get()) + if (!mAudioDecoder) { std::cerr << "Failed to create audio decoder, can not play audio stream" << std::endl; avcodec_free_context(&this->audio_ctx); diff --git a/extern/osg-ffmpeg-videoplayer/videostate.hpp b/extern/osg-ffmpeg-videoplayer/videostate.hpp index a53acd4183..d1592bd910 100644 --- a/extern/osg-ffmpeg-videoplayer/videostate.hpp +++ b/extern/osg-ffmpeg-videoplayer/videostate.hpp @@ -184,7 +184,8 @@ struct VideoState { SwsContext* sws_context; int sws_context_w, sws_context_h; std::array pictq; // allocate one extra to make sure we do not overwrite the osg::Image currently set on the texture - int pictq_size, pictq_rindex, pictq_windex; + int pictq_size; + unsigned long pictq_rindex, pictq_windex; std::mutex pictq_mutex; std::condition_variable pictq_cond;