wtv: convert to new channel layout API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
0116c9162e
commit
b0e5661194
@ -584,11 +584,9 @@ static void parse_mpeg1waveformatex(AVStream *st)
|
|||||||
switch (AV_RL16(st->codecpar->extradata + 6)) {
|
switch (AV_RL16(st->codecpar->extradata + 6)) {
|
||||||
case 1 :
|
case 1 :
|
||||||
case 2 :
|
case 2 :
|
||||||
case 4 : st->codecpar->channels = 2;
|
case 4 : st->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_STEREO;
|
||||||
st->codecpar->channel_layout = AV_CH_LAYOUT_STEREO;
|
|
||||||
break;
|
break;
|
||||||
case 8 : st->codecpar->channels = 1;
|
case 8 : st->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO;
|
||||||
st->codecpar->channel_layout = AV_CH_LAYOUT_MONO;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user