diff options
| author | Timotej Lazar <timotej.lazar@araneo.si> | 2022-06-12 16:23:24 +0200 |
|---|---|---|
| committer | Timotej Lazar <timotej.lazar@araneo.si> | 2022-06-12 16:23:24 +0200 |
| commit | 27800ea9ebb972f16e9ed3de35f62ad472dc8ef4 (patch) | |
| tree | 58122035549933493669f9e3a4f0619cfe2d361d /src/bink.c | |
| parent | 0fd40ff481bdc82b5d221075127367895c59d5ce (diff) | |
Bink: replace AVFrame.channel_layout with .channels
Replace again with .ch_layout when ffmpeg finish changing their mind.
Diffstat (limited to 'src/bink.c')
| -rw-r--r-- | src/bink.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |
