浏览代码

Fix for older FFMPEG versions

rdb 17 年之前
父节点
当前提交
581e928c57
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      panda/src/movies/ffmpegVirtualFile.cxx

+ 4 - 0
panda/src/movies/ffmpegVirtualFile.cxx

@@ -20,6 +20,10 @@
 #include "virtualFileSystem.h"
 #include "avio.h"
 
+#ifndef AVSEEK_SIZE
+  #define AVSEEK_SIZE 0x10000
+#endif
+
 ////////////////////////////////////////////////////////////////////
 // These functions need to use C calling conventions.
 ////////////////////////////////////////////////////////////////////