avformat/dvdvideodec: assign mono channel layout explicitly

Signed-off-by: Marth64 <marth64@proxyid.net>
release/7.0
Marth64 11 months ago committed by Stefano Sabatini
parent ac61231757
commit ffc3f2a350
  1. 4
      libavformat/dvdvideodec.c

@ -932,7 +932,9 @@ static int dvdvideo_audio_stream_analyze(AVFormatContext *s, audio_attr_t audio_
return AVERROR_INVALIDDATA;
}
if (nb_channels == 2)
if (nb_channels == 1)
ch_layout = (AVChannelLayout) AV_CHANNEL_LAYOUT_MONO;
else if (nb_channels == 2)
ch_layout = (AVChannelLayout) AV_CHANNEL_LAYOUT_STEREO;
else if (nb_channels == 6)
ch_layout = (AVChannelLayout) AV_CHANNEL_LAYOUT_5POINT1;

Loading…
Cancel
Save