summaryrefslogtreecommitdiffstats
path: root/video/mp_image.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-06-28 21:14:43 +0200
committerwm4 <wm4@nowhere>2013-06-28 21:20:42 +0200
commita5b90bde0c5b735855563694ca17aacd4dbf092f (patch)
tree144081f4cca7feae1d0eb45865a3af52ed672058 /video/mp_image.c
parentac266da6588f25a449a739f7a6a3d2c69ca80e19 (diff)
downloadmpv-a5b90bde0c5b735855563694ca17aacd4dbf092f.tar.bz2
mpv-a5b90bde0c5b735855563694ca17aacd4dbf092f.tar.xz
csputils.h: don't recursively include libavcodec header
Some functions (avcol_spc_to_mp_csp() etc.) used libavcodec enum types as parameters. Remove these in order to get rid of the avcodec.h include statement. This prevents that avcodec.h is recursively included by dozens of files. Fix mp_image.c, which used the header without explicitly including avcodec.h.
Diffstat (limited to 'video/mp_image.c')
-rw-r--r--video/mp_image.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/mp_image.c b/video/mp_image.c
index 95b59eae28..d395fcf572 100644
--- a/video/mp_image.c
+++ b/video/mp_image.c
@@ -26,6 +26,7 @@
#include <libavutil/mem.h>
#include <libavutil/common.h>
#include <libavutil/bswap.h>
+#include <libavcodec/avcodec.h>
#include "talloc.h"