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:
Robert Osfield
2011-07-15 10:24:23 +00:00
parent 147455866f
commit f0bdbea926
2 changed files with 23 additions and 0 deletions

View File

@@ -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)