Add a #ifdef to include libavcodec/opt.h only for older ffmpeg's which have it

This commit is contained in:
Chetan Chauhan 2013-09-25 14:05:38 +00:00
parent 9e7cd026eb
commit a6ae54eed1
1 changed files with 2 additions and 0 deletions

View File

@ -30,8 +30,10 @@ extern "C" {
#endif
#if HAVE_LIBAVCODEC_AVCODEC_H
#include <libavcodec/avcodec.h>
#if LIBAVFORMAT_VERSION_INT <= AV_VERSION_INT(53, 21, 0)
#include <libavcodec/opt.h>
#endif
#endif
#if HAVE_LIBAVFORMAT_AVFORMAT_H
#include <libavformat/avformat.h>
#endif