summaryrefslogtreecommitdiff
path: root/src/lib/decoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-09-12 10:54:39 +0100
committerCarl Hetherington <cth@carlh.net>2012-09-12 10:54:39 +0100
commit3e3fa3f58b9ce62768ca8a977334ae1b5fe7da69 (patch)
tree4d602c89335cd1750c9d3cec2983c73cd96a554e /src/lib/decoder.h
parent677c1df8fb6cad316a51d074d819be39a3b279ee (diff)
Allow build using Ubuntu 12.04 repos.
Diffstat (limited to 'src/lib/decoder.h')
-rw-r--r--src/lib/decoder.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/decoder.h b/src/lib/decoder.h
index 5c69e12d0..792f7dde2 100644
--- a/src/lib/decoder.h
+++ b/src/lib/decoder.h
@@ -29,9 +29,11 @@
#include <stdint.h>
#include <boost/shared_ptr.hpp>
#include <sigc++/sigc++.h>
+#ifdef HAVE_SWRESAMPLE
extern "C" {
#include <libswresample/swresample.h>
-}
+}
+#endif
#include "util.h"
class Job;
@@ -132,7 +134,9 @@ private:
AVFilterContext* _buffer_src_context;
AVFilterContext* _buffer_sink_context;
+#if HAVE_SWRESAMPLE
SwrContext* _swr_context;
+#endif
bool _have_setup_video_filters;
DelayLine* _delay_line;