summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBret Curtis <psi29a@gmail.com>2021-12-30 02:11:07 +0100
committerBret Curtis <psi29a@gmail.com>2021-12-30 02:11:07 +0100
commit15ef45810dc6a6a24a7d486e2888fcce402144d6 (patch)
tree4a34a86b355f0e535f71c29c5b80cdf60eff4726
parentbade935e3493616e83095b486a54b3edf5010ba0 (diff)
add comment back where necessarytask/#6088_ffmpeg_api_deprecation_warnings
-rw-r--r--extern/osg-ffmpeg-videoplayer/videostate.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/extern/osg-ffmpeg-videoplayer/videostate.hpp b/extern/osg-ffmpeg-videoplayer/videostate.hpp
index f28dfb378e..a53acd4183 100644
--- a/extern/osg-ffmpeg-videoplayer/videostate.hpp
+++ b/extern/osg-ffmpeg-videoplayer/videostate.hpp
@@ -183,7 +183,7 @@ struct VideoState {
PacketQueue videoq;
SwsContext* sws_context;
int sws_context_w, sws_context_h;
- std::array<VideoPicture, VIDEO_PICTURE_QUEUE_SIZE+1> pictq;
+ std::array<VideoPicture, VIDEO_PICTURE_QUEUE_SIZE+1> 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;
std::mutex pictq_mutex;
std::condition_variable pictq_cond;