summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-15 03:24:12 +0200
committerwm4 <wm4@nowhere>2013-07-15 03:24:12 +0200
commiteb98e43c0f7bad6c7bf682570b0b41ff7759132a (patch)
tree787ea57f021c18a0e312991467af7ca1c50e2155 /video
parentee013bd969bc6c49a34b4f5766630859eb382ca2 (diff)
downloadmpv-eb98e43c0f7bad6c7bf682570b0b41ff7759132a.tar.bz2
mpv-eb98e43c0f7bad6c7bf682570b0b41ff7759132a.tar.xz
Fix build on Libav stable (dammit)
The previous commit fixed Libav git, but it was still broken on Libav 9.8. Also, while we're at it, add a note to lavc_dr1.c and its status.
Diffstat (limited to 'video')
-rw-r--r--video/decode/lavc_dr1.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/video/decode/lavc_dr1.c b/video/decode/lavc_dr1.c
index e81b723a70..85f70b0284 100644
--- a/video/decode/lavc_dr1.c
+++ b/video/decode/lavc_dr1.c
@@ -19,6 +19,13 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
+/*
+ * NOTE: this file is for compatibility with older versions of
+ * libavcodec, before AVFrame reference counting was introduced.
+ * It is not compiled if libavcodec is new enough.
+ */
+
#include <string.h>
#include <stdlib.h>
#include <errno.h>
@@ -30,6 +37,7 @@
#include <libavutil/mathematics.h>
#include <libavutil/imgutils.h>
#include <libavutil/pixdesc.h>
+#include <libavutil/common.h>
#include "lavc.h"