From 6fd46414dbecfc41c0c70b4b8a1847d3aa277a1f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 12 Sep 2005 18:24:48 +0000 Subject: [PATCH] dont include opt.h in avcodec.h Originally committed as revision 4591 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 1 + libavcodec/avcodec.h | 3 +-- libavcodec/opt.c | 1 + libavcodec/utils.c | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ffmpeg.c b/ffmpeg.c index 70372af455..7eed04f3b3 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -21,6 +21,7 @@ #include "avformat.h" #include "framehook.h" #include "dsputil.h" +#include "opt.h" #ifndef CONFIG_WIN32 #include diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 826329f8ac..82a198453e 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -12,7 +12,6 @@ extern "C" { #endif #include "avutil.h" -#include "opt.h" #include /* size_t */ //FIXME the following 2 really dont belong in here @@ -682,7 +681,7 @@ struct AVCLASS { or AVFormatContext, which begin with an AVClass. Needed because av_log is in libavcodec and has no visibility of AVIn/OutputFormat */ - AVOption *option; + struct AVOption *option; }; /** diff --git a/libavcodec/opt.c b/libavcodec/opt.c index 80770549b9..8934c23d4e 100644 --- a/libavcodec/opt.c +++ b/libavcodec/opt.c @@ -25,6 +25,7 @@ */ #include "avcodec.h" +#include "opt.h" static double av_parse_num(const char *name, char **tail){ double d; diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 3eb1e60014..8fc275bc6b 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -28,6 +28,7 @@ #include "dsputil.h" #include "mpegvideo.h" #include "integer.h" +#include "opt.h" #include #include #include