Check for old libavutil version.
This commit is contained in:
parent
0efbe496a3
commit
913f5b4561
|
@ -55,6 +55,11 @@ extern "C" {
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if LIBAVUTIL_VERSION_INT <= AV_VERSION_INT(52, 9, 0)
|
||||||
|
#define av_frame_alloc avcodec_alloc_frame
|
||||||
|
#define av_frame_free avcodec_free_frame
|
||||||
|
#endif
|
||||||
|
|
||||||
struct ff_video_info
|
struct ff_video_info
|
||||||
{
|
{
|
||||||
AVCodecContext *codec;
|
AVCodecContext *codec;
|
||||||
|
|
Loading…
Reference in New Issue