Add a #ifdef to include libavcodec/opt.h only for older ffmpeg's which have it
This commit is contained in:
parent
9e7cd026eb
commit
a6ae54eed1
|
@ -30,8 +30,10 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_LIBAVCODEC_AVCODEC_H
|
#if HAVE_LIBAVCODEC_AVCODEC_H
|
||||||
#include <libavcodec/avcodec.h>
|
#include <libavcodec/avcodec.h>
|
||||||
|
#if LIBAVFORMAT_VERSION_INT <= AV_VERSION_INT(53, 21, 0)
|
||||||
#include <libavcodec/opt.h>
|
#include <libavcodec/opt.h>
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#if HAVE_LIBAVFORMAT_AVFORMAT_H
|
#if HAVE_LIBAVFORMAT_AVFORMAT_H
|
||||||
#include <libavformat/avformat.h>
|
#include <libavformat/avformat.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue