aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-06-12 01:10:58 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-07-22 11:14:31 +0200
commit1be3d8a0cb77f8d34c1f39b47bf5328fe10c82d7 (patch)
treee5fe6fc80bf3e5efa5f1c30b3f8e610ca8a4ee65 /libavcodec
parent57b5ec6ba7df442caebc401c4a7ef3ebc066b519 (diff)
downloadffmpeg-1be3d8a0cb77f8d34c1f39b47bf5328fe10c82d7.tar.gz
avcodec/avcodec: Stop including channel_layout.h in avcodec.h
Also include channel_layout.h directly wherever used. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/aacdec_template.c1
-rw-r--r--libavcodec/aacenc.c1
-rw-r--r--libavcodec/aacenc.h1
-rw-r--r--libavcodec/aacenctab.h1
-rw-r--r--libavcodec/aptxdec.c1
-rw-r--r--libavcodec/aptxenc.c1
-rw-r--r--libavcodec/atrac9dec.c1
-rw-r--r--libavcodec/audiotoolboxdec.c1
-rw-r--r--libavcodec/audiotoolboxenc.c1
-rw-r--r--libavcodec/avcodec.c1
-rw-r--r--libavcodec/avcodec.h1
-rw-r--r--libavcodec/dca_core.c1
-rw-r--r--libavcodec/dca_xll.c1
-rw-r--r--libavcodec/decode.c1
-rw-r--r--libavcodec/dolby_e.c1
-rw-r--r--libavcodec/dolby_e_parser.c1
-rw-r--r--libavcodec/dvaudiodec.c1
-rw-r--r--libavcodec/encode.c1
-rw-r--r--libavcodec/evrcdec.c1
-rw-r--r--libavcodec/flacenc.c1
-rw-r--r--libavcodec/g722enc.c1
-rw-r--r--libavcodec/ilbcdec.c1
-rw-r--r--libavcodec/libcodec2.c1
-rw-r--r--libavcodec/libgsmenc.c1
-rw-r--r--libavcodec/libopusenc.c1
-rw-r--r--libavcodec/libshine.c1
-rw-r--r--libavcodec/libtwolame.c1
-rw-r--r--libavcodec/libvorbisenc.c1
-rw-r--r--libavcodec/mlp.c1
-rw-r--r--libavcodec/mlpenc.c1
-rw-r--r--libavcodec/mpegaudioenc_fixed.c1
-rw-r--r--libavcodec/mpegaudioenc_float.c1
-rw-r--r--libavcodec/opus.c1
-rw-r--r--libavcodec/opusenc.c1
-rw-r--r--libavcodec/pafaudio.c1
-rw-r--r--libavcodec/pcm-dvdenc.c1
-rw-r--r--libavcodec/ra144enc.c1
-rw-r--r--libavcodec/s302m.c1
-rw-r--r--libavcodec/s302menc.c1
-rw-r--r--libavcodec/sbcdec.c1
-rw-r--r--libavcodec/sbcenc.c1
-rw-r--r--libavcodec/siren.c1
-rw-r--r--libavcodec/tak.c1
-rw-r--r--libavcodec/tta.c1
-rw-r--r--libavcodec/utils.c1
-rw-r--r--libavcodec/wavpackenc.c1
46 files changed, 45 insertions, 1 deletions
diff --git a/libavcodec/aacdec_template.c b/libavcodec/aacdec_template.c
index 85a2d1c7b6..7149b331ae 100644
--- a/libavcodec/aacdec_template.c
+++ b/libavcodec/aacdec_template.c
@@ -89,6 +89,7 @@
Parametric Stereo.
*/
+#include "libavutil/channel_layout.h"
#include "libavutil/thread.h"
static VLC vlc_scalefactors;
diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c
index 23bfa20eaf..e462566078 100644
--- a/libavcodec/aacenc.c
+++ b/libavcodec/aacenc.c
@@ -30,6 +30,7 @@
***********************************/
#include <float.h>
+#include "libavutil/channel_layout.h"
#include "libavutil/libm.h"
#include "libavutil/float_dsp.h"
#include "libavutil/opt.h"
diff --git a/libavcodec/aacenc.h b/libavcodec/aacenc.h
index 8ffc94f99b..b106910ce0 100644
--- a/libavcodec/aacenc.h
+++ b/libavcodec/aacenc.h
@@ -22,6 +22,7 @@
#ifndef AVCODEC_AACENC_H
#define AVCODEC_AACENC_H
+#include "libavutil/channel_layout.h"
#include "libavutil/float_dsp.h"
#include "libavutil/mem_internal.h"
diff --git a/libavcodec/aacenctab.h b/libavcodec/aacenctab.h
index dbbdf61dfd..f54dd16bed 100644
--- a/libavcodec/aacenctab.h
+++ b/libavcodec/aacenctab.h
@@ -28,6 +28,7 @@
#ifndef AVCODEC_AACENCTAB_H
#define AVCODEC_AACENCTAB_H
+#include "libavutil/channel_layout.h"
#include "aac.h"
/** Total number of usable codebooks **/
diff --git a/libavcodec/aptxdec.c b/libavcodec/aptxdec.c
index e7e5459bbf..bdcc076c41 100644
--- a/libavcodec/aptxdec.c
+++ b/libavcodec/aptxdec.c
@@ -20,6 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/channel_layout.h"
#include "aptx.h"
/*
diff --git a/libavcodec/aptxenc.c b/libavcodec/aptxenc.c
index 733ebc42c3..5ea6053c26 100644
--- a/libavcodec/aptxenc.c
+++ b/libavcodec/aptxenc.c
@@ -20,6 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/channel_layout.h"
#include "aptx.h"
#include "encode.h"
diff --git a/libavcodec/atrac9dec.c b/libavcodec/atrac9dec.c
index eebb412145..1063044815 100644
--- a/libavcodec/atrac9dec.c
+++ b/libavcodec/atrac9dec.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/channel_layout.h"
#include "libavutil/thread.h"
#include "internal.h"
diff --git a/libavcodec/audiotoolboxdec.c b/libavcodec/audiotoolboxdec.c
index cbd381ef12..a222cde62e 100644
--- a/libavcodec/audiotoolboxdec.c
+++ b/libavcodec/audiotoolboxdec.c
@@ -29,6 +29,7 @@
#include "internal.h"
#include "mpegaudiodecheader.h"
#include "libavutil/avassert.h"
+#include "libavutil/channel_layout.h"
#include "libavutil/opt.h"
#include "libavutil/log.h"
diff --git a/libavcodec/audiotoolboxenc.c b/libavcodec/audiotoolboxenc.c
index f599802b7b..9245aa9dc4 100644
--- a/libavcodec/audiotoolboxenc.c
+++ b/libavcodec/audiotoolboxenc.c
@@ -33,6 +33,7 @@
#include "internal.h"
#include "libavformat/isom.h"
#include "libavutil/avassert.h"
+#include "libavutil/channel_layout.h"
#include "libavutil/opt.h"
#include "libavutil/log.h"
diff --git a/libavcodec/avcodec.c b/libavcodec/avcodec.c
index 3b3a3ef05a..6d60026c07 100644
--- a/libavcodec/avcodec.c
+++ b/libavcodec/avcodec.c
@@ -27,6 +27,7 @@
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/bprint.h"
+#include "libavutil/channel_layout.h"
#include "libavutil/imgutils.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index f9d8edc3e2..f3f043ded1 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -33,7 +33,6 @@
#include "libavutil/avutil.h"
#include "libavutil/buffer.h"
#include "libavutil/cpu.h"
-#include "libavutil/channel_layout.h"
#include "libavutil/dict.h"
#include "libavutil/frame.h"
#include "libavutil/hwcontext.h"
diff --git a/libavcodec/dca_core.c b/libavcodec/dca_core.c
index accc5efd51..f0a3c18d62 100644
--- a/libavcodec/dca_core.c
+++ b/libavcodec/dca_core.c
@@ -18,6 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/channel_layout.h"
#include "dcaadpcm.h"
#include "dcadec.h"
#include "dcadata.h"
diff --git a/libavcodec/dca_xll.c b/libavcodec/dca_xll.c
index d265cab8df..ab14dbcc88 100644
--- a/libavcodec/dca_xll.c
+++ b/libavcodec/dca_xll.c
@@ -18,6 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/channel_layout.h"
#include "dcadec.h"
#include "dcadata.h"
#include "dcamath.h"
diff --git a/libavcodec/decode.c b/libavcodec/decode.c
index 7c367cdf70..643f9d6a30 100644
--- a/libavcodec/decode.c
+++ b/libavcodec/decode.c
@@ -30,6 +30,7 @@
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/bprint.h"
+#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "libavutil/frame.h"
#include "libavutil/hwcontext.h"
diff --git a/libavcodec/dolby_e.c b/libavcodec/dolby_e.c
index cd4c8c2c3c..6c0d54be4c 100644
--- a/libavcodec/dolby_e.c
+++ b/libavcodec/dolby_e.c
@@ -18,6 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/channel_layout.h"
#include "libavutil/float_dsp.h"
#include "libavutil/thread.h"
#include "libavutil/mem.h"
diff --git a/libavcodec/dolby_e_parser.c b/libavcodec/dolby_e_parser.c
index ab8f1b6ef1..23bddd14f3 100644
--- a/libavcodec/dolby_e_parser.c
+++ b/libavcodec/dolby_e_parser.c
@@ -18,6 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "dolby_e.h"
#include "get_bits.h"
diff --git a/libavcodec/dvaudiodec.c b/libavcodec/dvaudiodec.c
index e12f43c485..82e6dbe36c 100644
--- a/libavcodec/dvaudiodec.c
+++ b/libavcodec/dvaudiodec.c
@@ -18,6 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "internal.h"
diff --git a/libavcodec/encode.c b/libavcodec/encode.c
index a569904f2c..98dfbfdff3 100644
--- a/libavcodec/encode.c
+++ b/libavcodec/encode.c
@@ -20,6 +20,7 @@
#include "libavutil/attributes.h"
#include "libavutil/avassert.h"
+#include "libavutil/channel_layout.h"
#include "libavutil/frame.h"
#include "libavutil/imgutils.h"
#include "libavutil/internal.h"
diff --git a/libavcodec/evrcdec.c b/libavcodec/evrcdec.c
index 75de6cf803..59fcb14c52 100644
--- a/libavcodec/evrcdec.c
+++ b/libavcodec/evrcdec.c
@@ -25,6 +25,7 @@
* @author Paul B Mahol
*/
+#include "libavutil/channel_layout.h"
#include "libavutil/mathematics.h"
#include "libavutil/opt.h"
#include "avcodec.h"
diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c
index de36d33333..595928927d 100644
--- a/libavcodec/flacenc.c
+++ b/libavcodec/flacenc.c
@@ -20,6 +20,7 @@
*/
#include "libavutil/avassert.h"
+#include "libavutil/channel_layout.h"
#include "libavutil/crc.h"
#include "libavutil/intmath.h"
#include "libavutil/md5.h"
diff --git a/libavcodec/g722enc.c b/libavcodec/g722enc.c
index bb011fb81b..75b926ef8e 100644
--- a/libavcodec/g722enc.c
+++ b/libavcodec/g722enc.c
@@ -28,6 +28,7 @@
*/
#include "libavutil/avassert.h"
+#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "encode.h"
#include "internal.h"
diff --git a/libavcodec/ilbcdec.c b/libavcodec/ilbcdec.c
index 3df46b242f..4d0465087f 100644
--- a/libavcodec/ilbcdec.c
+++ b/libavcodec/ilbcdec.c
@@ -30,6 +30,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "internal.h"
#include "get_bits.h"
diff --git a/libavcodec/libcodec2.c b/libavcodec/libcodec2.c
index a8c92ecce1..eb66867f82 100644
--- a/libavcodec/libcodec2.c
+++ b/libavcodec/libcodec2.c
@@ -20,6 +20,7 @@
*/
#include <codec2/codec2.h>
+#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "libavutil/opt.h"
#include "encode.h"
diff --git a/libavcodec/libgsmenc.c b/libavcodec/libgsmenc.c
index 97ba789046..a2f6c1c62e 100644
--- a/libavcodec/libgsmenc.c
+++ b/libavcodec/libgsmenc.c
@@ -34,6 +34,7 @@
#include <gsm/gsm.h>
#endif
+#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "avcodec.h"
diff --git a/libavcodec/libopusenc.c b/libavcodec/libopusenc.c
index 6602500f26..82002ac346 100644
--- a/libavcodec/libopusenc.c
+++ b/libavcodec/libopusenc.c
@@ -22,6 +22,7 @@
#include <opus.h>
#include <opus_multistream.h>
+#include "libavutil/channel_layout.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "bytestream.h"
diff --git a/libavcodec/libshine.c b/libavcodec/libshine.c
index 04d5914701..fbc84846ae 100644
--- a/libavcodec/libshine.c
+++ b/libavcodec/libshine.c
@@ -21,6 +21,7 @@
#include <shine/layer3.h>
+#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "audio_frame_queue.h"
#include "avcodec.h"
diff --git a/libavcodec/libtwolame.c b/libavcodec/libtwolame.c
index 1f6808b6f5..a71febc91f 100644
--- a/libavcodec/libtwolame.c
+++ b/libavcodec/libtwolame.c
@@ -26,6 +26,7 @@
#include <twolame.h>
+#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "libavutil/opt.h"
diff --git a/libavcodec/libvorbisenc.c b/libavcodec/libvorbisenc.c
index ec674695d4..fa0d5f4b42 100644
--- a/libavcodec/libvorbisenc.c
+++ b/libavcodec/libvorbisenc.c
@@ -21,6 +21,7 @@
#include <vorbis/vorbisenc.h>
#include "libavutil/avassert.h"
+#include "libavutil/channel_layout.h"
#include "libavutil/fifo.h"
#include "libavutil/opt.h"
#include "avcodec.h"
diff --git a/libavcodec/mlp.c b/libavcodec/mlp.c
index 74363c3b95..dcec145eb0 100644
--- a/libavcodec/mlp.c
+++ b/libavcodec/mlp.c
@@ -21,6 +21,7 @@
#include <stdint.h>
+#include "libavutil/channel_layout.h"
#include "libavutil/crc.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/thread.h"
diff --git a/libavcodec/mlpenc.c b/libavcodec/mlpenc.c
index 7693feb127..8b61fc6b1e 100644
--- a/libavcodec/mlpenc.c
+++ b/libavcodec/mlpenc.c
@@ -25,6 +25,7 @@
#include "internal.h"
#include "put_bits.h"
#include "audio_frame_queue.h"
+#include "libavutil/channel_layout.h"
#include "libavutil/crc.h"
#include "libavutil/avstring.h"
#include "libavutil/samplefmt.h"
diff --git a/libavcodec/mpegaudioenc_fixed.c b/libavcodec/mpegaudioenc_fixed.c
index ce8963fd0b..fb1ba4e1bf 100644
--- a/libavcodec/mpegaudioenc_fixed.c
+++ b/libavcodec/mpegaudioenc_fixed.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/channel_layout.h"
#include "mpegaudioenc_template.c"
const AVCodec ff_mp2fixed_encoder = {
diff --git a/libavcodec/mpegaudioenc_float.c b/libavcodec/mpegaudioenc_float.c
index ba3b096579..accb909a6f 100644
--- a/libavcodec/mpegaudioenc_float.c
+++ b/libavcodec/mpegaudioenc_float.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/channel_layout.h"
#define USE_FLOATS 1
#include "mpegaudioenc_template.c"
diff --git a/libavcodec/opus.c b/libavcodec/opus.c
index 64de246720..5ca6ca92f3 100644
--- a/libavcodec/opus.c
+++ b/libavcodec/opus.c
@@ -26,6 +26,7 @@
#include <stdint.h>
+#include "libavutil/channel_layout.h"
#include "libavutil/error.h"
#include "libavutil/ffmath.h"
diff --git a/libavcodec/opusenc.c b/libavcodec/opusenc.c
index 7b22b929f7..b7f4760a25 100644
--- a/libavcodec/opusenc.c
+++ b/libavcodec/opusenc.c
@@ -25,6 +25,7 @@
#include "opusenc_psy.h"
#include "opustab.h"
+#include "libavutil/channel_layout.h"
#include "libavutil/float_dsp.h"
#include "libavutil/mem_internal.h"
#include "libavutil/opt.h"
diff --git a/libavcodec/pafaudio.c b/libavcodec/pafaudio.c
index cb80f3a186..969eb7fa97 100644
--- a/libavcodec/pafaudio.c
+++ b/libavcodec/pafaudio.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
diff --git a/libavcodec/pcm-dvdenc.c b/libavcodec/pcm-dvdenc.c
index ae7de65f1d..c9afac69d2 100644
--- a/libavcodec/pcm-dvdenc.c
+++ b/libavcodec/pcm-dvdenc.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "bytestream.h"
#include "encode.h"
diff --git a/libavcodec/ra144enc.c b/libavcodec/ra144enc.c
index 4d12294c97..7a96354633 100644
--- a/libavcodec/ra144enc.c
+++ b/libavcodec/ra144enc.c
@@ -27,6 +27,7 @@
#include <float.h>
+#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "audio_frame_queue.h"
#include "celp_filters.h"
diff --git a/libavcodec/s302m.c b/libavcodec/s302m.c
index 60d1547884..b09c1293a0 100644
--- a/libavcodec/s302m.c
+++ b/libavcodec/s302m.c
@@ -20,6 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "libavutil/log.h"
diff --git a/libavcodec/s302menc.c b/libavcodec/s302menc.c
index 33633627f6..528d712e79 100644
--- a/libavcodec/s302menc.c
+++ b/libavcodec/s302menc.c
@@ -20,6 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "encode.h"
#include "internal.h"
diff --git a/libavcodec/sbcdec.c b/libavcodec/sbcdec.c
index db61f43a5a..e14d8c8958 100644
--- a/libavcodec/sbcdec.c
+++ b/libavcodec/sbcdec.c
@@ -32,6 +32,7 @@
#include "avcodec.h"
#include "internal.h"
+#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#include "sbc.h"
diff --git a/libavcodec/sbcenc.c b/libavcodec/sbcenc.c
index 5f9a214a1a..45156277b7 100644
--- a/libavcodec/sbcenc.c
+++ b/libavcodec/sbcenc.c
@@ -30,6 +30,7 @@
* SBC encoder implementation
*/
+#include "libavutil/channel_layout.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "encode.h"
diff --git a/libavcodec/siren.c b/libavcodec/siren.c
index 5937f0d56c..87464808a4 100644
--- a/libavcodec/siren.c
+++ b/libavcodec/siren.c
@@ -21,6 +21,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/channel_layout.h"
#include "libavutil/tx.h"
#include "libavutil/float_dsp.h"
#include "libavutil/mem_internal.h"
diff --git a/libavcodec/tak.c b/libavcodec/tak.c
index 8aa956b661..7221a80094 100644
--- a/libavcodec/tak.c
+++ b/libavcodec/tak.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/channel_layout.h"
#include "libavutil/crc.h"
#include "libavutil/intreadwrite.h"
diff --git a/libavcodec/tta.c b/libavcodec/tta.c
index f628071ba3..d9ff45fad6 100644
--- a/libavcodec/tta.c
+++ b/libavcodec/tta.c
@@ -29,6 +29,7 @@
#include <limits.h>
+#include "libavutil/channel_layout.h"
#include "libavutil/crc.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 88e88bc958..b2f0d2a497 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -28,6 +28,7 @@
#include "config.h"
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
+#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "libavutil/pixdesc.h"
diff --git a/libavcodec/wavpackenc.c b/libavcodec/wavpackenc.c
index bd548a5c30..dc4f4e303b 100644
--- a/libavcodec/wavpackenc.c
+++ b/libavcodec/wavpackenc.c
@@ -20,6 +20,7 @@
#define BITSTREAM_WRITER_LE
+#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "avcodec.h"