Pārlūkot izejas kodu

Fix for older FFMPEG versions

rdb 17 gadi atpakaļ
vecāks
revīzija
581e928c57
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      panda/src/movies/ffmpegVirtualFile.cxx

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

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