summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.si>2022-06-12 16:23:24 +0200
committerTimotej Lazar <timotej.lazar@araneo.si>2022-06-12 16:23:24 +0200
commit27800ea9ebb972f16e9ed3de35f62ad472dc8ef4 (patch)
tree58122035549933493669f9e3a4f0619cfe2d361d
parent0fd40ff481bdc82b5d221075127367895c59d5ce (diff)
Bink: replace AVFrame.channel_layout with .channels
Replace again with .ch_layout when ffmpeg finish changing their mind.
-rw-r--r--src/bink.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bink.c b/src/bink.c
index 2f54be0..bb0ec4a 100644
--- a/src/bink.c
+++ b/src/bink.c
@@ -180,12 +180,12 @@ static int DecodeAudioFrame(struct binkMovie* aMovie)
return 0;
if (!aMovie->alInited) {
- switch (aMovie->audioFrame->channel_layout) {
- case AV_CH_LAYOUT_MONO:
+ switch (aMovie->audioFrame->channels) {
+ case 1:
aMovie->alFormat = (aMovie->audioFrame->format == AV_SAMPLE_FMT_U8) ?
AL_FORMAT_MONO8 : AL_FORMAT_MONO16;
break;
- case AV_CH_LAYOUT_STEREO:
+ case 2:
aMovie->alFormat = (aMovie->audioFrame->format == AV_SAMPLE_FMT_U8) ?
AL_FORMAT_STEREO8 : AL_FORMAT_STEREO16;
break;