From Wang Rui, "I've found that the latest ffmpeg made some functions and macros
deprecated, which led to compilation errors in the OSG plugin. I tried fixing them and tested with the version ffmpeg-git-5d4fd1d (ffmpeg version > 0.8, libavcodec = 53.7.0) under Windows. "
This commit is contained in:
@@ -5,6 +5,15 @@
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
#if LIBAVCODEC_VERSION_MAJOR >= 53
|
||||
extern "C"
|
||||
{
|
||||
#include <parseutils.h>
|
||||
}
|
||||
#define av_parse_video_frame_size av_parse_video_size
|
||||
#define av_parse_video_frame_rate av_parse_video_rate
|
||||
#endif
|
||||
|
||||
#if LIBAVCODEC_VERSION_MAJOR >= 53 || \
|
||||
(LIBAVCODEC_VERSION_MAJOR==52 && LIBAVCODEC_VERSION_MINOR>=49)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user