summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Bornkessel <hd_brummy@gentoo.org>2014-11-03 13:11:01 +0100
committerJoerg Bornkessel <hd_brummy@gentoo.org>2014-11-03 13:11:01 +0100
commitb2a86cf7cecb0516bceb5d870461a5640e8b5b34 (patch)
treed16599b136dd5d6305e3d8fe37aa6aef1c289629
parente0111a5d42ddee9fa5d369fc8126a6bb0178e5e2 (diff)
downloadvdr-plugin-audiorecorder-b2a86cf7cecb0516bceb5d870461a5640e8b5b34.tar.gz
vdr-plugin-audiorecorder-b2a86cf7cecb0516bceb5d870461a5640e8b5b34.tar.bz2
missing include added
-rw-r--r--convert.c2
-rw-r--r--convert.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/convert.c b/convert.c
index e48975d..fcb4b43 100644
--- a/convert.c
+++ b/convert.c
@@ -91,7 +91,7 @@ void cConvert::init_encoder(const char *codec, int bit_rate, int sample_rate,
encoder_ctx->bit_rate = bit_rate;
encoder_ctx->sample_fmt = AV_SAMPLE_FMT_S16P;
encoder_ctx->sample_rate = sample_rate;
-// encoder_ctx->channel_layout = AV_CH_LAYOUT_STEREO; // <-- compiliert nicht,
+ encoder_ctx->channel_layout = AV_CH_LAYOUT_STEREO;
encoder_ctx->channels = channels;
encoder_open = avcodec_open2(encoder_ctx, encoder_codec, NULL);
diff --git a/convert.h b/convert.h
index 1d84596..b275cbf 100644
--- a/convert.h
+++ b/convert.h
@@ -12,6 +12,7 @@
extern "C" {
#include <libavcodec/avcodec.h>
#include <libavutil/mem.h>
+#include <libavutil/channel_layout.h> // https://www.ffmpeg.org/doxygen/2.2/libmp3lame_8c_source.html
}