mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -04:00
Fix for newer ffmpeg versions, they dropped support for C++
This commit is contained in:
parent
51089282c1
commit
acb0722ff5
@ -20,8 +20,10 @@
|
|||||||
|
|
||||||
#include "videoTexture.h"
|
#include "videoTexture.h"
|
||||||
|
|
||||||
#include "avcodec.h"
|
extern "C" {
|
||||||
#include "avformat.h"
|
#include "avcodec.h"
|
||||||
|
#include "avformat.h"
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Class : OpenCVTexture
|
// Class : OpenCVTexture
|
||||||
|
@ -17,7 +17,9 @@
|
|||||||
#include "webcamVideo.h"
|
#include "webcamVideo.h"
|
||||||
|
|
||||||
#ifdef HAVE_FFMPEG
|
#ifdef HAVE_FFMPEG
|
||||||
#include "avcodec.h"
|
extern "C" {
|
||||||
|
#include "avcodec.h"
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ConfigureDef(config_movies);
|
ConfigureDef(config_movies);
|
||||||
|
@ -15,8 +15,10 @@
|
|||||||
#ifdef HAVE_FFMPEG
|
#ifdef HAVE_FFMPEG
|
||||||
|
|
||||||
#include "ffmpegAudioCursor.h"
|
#include "ffmpegAudioCursor.h"
|
||||||
#include "avcodec.h"
|
extern "C" {
|
||||||
#include "avformat.h"
|
#include "avcodec.h"
|
||||||
|
#include "avformat.h"
|
||||||
|
}
|
||||||
|
|
||||||
TypeHandle FfmpegAudioCursor::_type_handle;
|
TypeHandle FfmpegAudioCursor::_type_handle;
|
||||||
|
|
||||||
|
@ -16,8 +16,10 @@
|
|||||||
|
|
||||||
#include "ffmpegVideoCursor.h"
|
#include "ffmpegVideoCursor.h"
|
||||||
#include "config_movies.h"
|
#include "config_movies.h"
|
||||||
#include "avcodec.h"
|
extern "C" {
|
||||||
#include "avformat.h"
|
#include "avcodec.h"
|
||||||
|
#include "avformat.h"
|
||||||
|
}
|
||||||
#include "pStatCollector.h"
|
#include "pStatCollector.h"
|
||||||
#include "pStatTimer.h"
|
#include "pStatTimer.h"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user