Fixed build against latest ffmpeg versions
This commit is contained in:
@@ -2,9 +2,10 @@
|
||||
#ifndef HEADER_GUARD_OSGFFMPEG_FFMPEG_AUDIO_STREAM_H
|
||||
#define HEADER_GUARD_OSGFFMPEG_FFMPEG_AUDIO_STREAM_H
|
||||
|
||||
#include <osg/AudioStream>
|
||||
#include "FFmpegDecoder.hpp"
|
||||
|
||||
#include <osg/AudioStream>
|
||||
|
||||
namespace osgFFmpeg
|
||||
{
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
extern "C"
|
||||
{
|
||||
#define __STDC_CONSTANT_MACROS
|
||||
#define FF_API_OLD_SAMPLE_FMT 0
|
||||
#include <errno.h> // for error codes defined in avformat.h
|
||||
#include <stdint.h>
|
||||
#include <avcodec.h>
|
||||
|
||||
@@ -2,13 +2,14 @@
|
||||
#ifndef HEADER_GUARD_OSGFFMPEG_FFMPEG_IMAGE_STREAM_H
|
||||
#define HEADER_GUARD_OSGFFMPEG_FFMPEG_IMAGE_STREAM_H
|
||||
|
||||
#include "FFmpegDecoder.hpp"
|
||||
#include "MessageQueue.hpp"
|
||||
|
||||
#include <osg/ImageStream>
|
||||
|
||||
#include <OpenThreads/Condition>
|
||||
#include <OpenThreads/Thread>
|
||||
|
||||
#include "FFmpegDecoder.hpp"
|
||||
#include "MessageQueue.hpp"
|
||||
|
||||
namespace osgFFmpeg
|
||||
{
|
||||
|
||||
@@ -11,14 +11,12 @@
|
||||
* OpenSceneGraph Public License for more details.
|
||||
*/
|
||||
|
||||
#include "FFmpegImageStream.hpp"
|
||||
|
||||
#include <osgDB/Registry>
|
||||
#include <osgDB/FileNameUtils>
|
||||
#include <osgDB/FileUtils>
|
||||
|
||||
#include "FFmpegHeaders.hpp"
|
||||
#include "FFmpegImageStream.hpp"
|
||||
|
||||
|
||||
|
||||
/** Implementation heavily inspired by http://www.dranger.com/ffmpeg/ */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user