mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 07:24:23 +02:00
f7cf63e0de
from Brad, ok rsadowski pascal
20 lines
643 B
Plaintext
20 lines
643 B
Plaintext
Fix building with newer FFmpeg
|
|
|
|
Index: src/osgPlugins/ffmpeg/FFmpegDecoder.hpp
|
|
--- src/osgPlugins/ffmpeg/FFmpegDecoder.hpp.orig
|
|
+++ src/osgPlugins/ffmpeg/FFmpegDecoder.hpp
|
|
@@ -46,13 +46,8 @@ class FormatContextPtr
|
|
{
|
|
if (_ptr)
|
|
{
|
|
-#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(53, 17, 0)
|
|
OSG_NOTICE<<"Calling avformat_close_input("<<&_ptr<<")"<<std::endl;
|
|
avformat_close_input(&_ptr);
|
|
-#else
|
|
- OSG_NOTICE<<"Calling av_close_input_file("<<_ptr<<")"<<std::endl;
|
|
- av_close_input_file(_ptr);
|
|
-#endif
|
|
}
|
|
_ptr = 0;
|
|
}
|