Bink: replace AVFrame.channel_layout with .channels
Replace again with .ch_layout when ffmpeg finish changing their mind.
This commit is contained in:
parent
0fd40ff481
commit
27800ea9eb
1 changed files with 3 additions and 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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue