History

avformat/dvdvideodec: assign mono channel layout explicitly

Marth64 committed 2 years ago

Commit ffc3f2a1 parent ac612311 file · +3 −1Browse files

Unified · Split

libavformat/dvdvideodec.c+3−1
@@ -932,7 +932,9 @@ static int dvdvideo_audio_stream_analyze(AVFormatContext *s, audio_attr_t audio_ · 931 unmodified lines
932 return AVERROR_INVALIDDATA;932 return AVERROR_INVALIDDATA;
933 }933 }
934 934
935 if (nb_channels == 2)935 if (nb_channels == 1)
936 ch_layout = (AVChannelLayout) AV_CHANNEL_LAYOUT_MONO;
937 else if (nb_channels == 2)
936 ch_layout = (AVChannelLayout) AV_CHANNEL_LAYOUT_STEREO;938 ch_layout = (AVChannelLayout) AV_CHANNEL_LAYOUT_STEREO;
937 else if (nb_channels == 6)939 else if (nb_channels == 6)
938 ch_layout = (AVChannelLayout) AV_CHANNEL_LAYOUT_5POINT1;940 ch_layout = (AVChannelLayout) AV_CHANNEL_LAYOUT_5POINT1;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t