mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-02 04:52:09 +00:00
avformat/dvdvideodec: assign mono channel layout explicitly
Signed-off-by: Marth64 <marth64@proxyid.net>
This commit is contained in:
parent
ac61231757
commit
ffc3f2a350
@ -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…
Reference in New Issue
Block a user