mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
dvdlpcmdec: fix for multichannel
This commit is contained in:
parent
882aaf0de2
commit
a2dee80838
1 changed files with 2 additions and 2 deletions
|
@ -292,7 +292,7 @@ gst_dvdlpcmdec_setcaps (GstPad * pad, GstCaps * caps)
|
|||
if (channels < 9
|
||||
&& channel_positions[channels - 1][0] !=
|
||||
GST_AUDIO_CHANNEL_POSITION_INVALID) {
|
||||
dvdlpcmdec->info.flags &= ~GST_AUDIO_FLAG_NONE_LAYOUT;
|
||||
dvdlpcmdec->info.flags &= ~GST_AUDIO_FLAG_UNPOSITIONED;
|
||||
position = channel_positions[channels - 1];
|
||||
dvdlpcmdec->lpcm_layout = position;
|
||||
memcpy (dvdlpcmdec->info.position, position,
|
||||
|
@ -412,7 +412,7 @@ parse_header (GstDvdLpcmDec * dec, guint32 header)
|
|||
GST_AUDIO_CHANNEL_POSITION_INVALID) {
|
||||
const GstAudioChannelPosition *position;
|
||||
|
||||
dec->info.flags &= ~GST_AUDIO_FLAG_NONE_LAYOUT;
|
||||
dec->info.flags &= ~GST_AUDIO_FLAG_UNPOSITIONED;
|
||||
position = channel_positions[channels - 1];
|
||||
dec->lpcm_layout = position;
|
||||
memcpy (dec->info.position, position,
|
||||
|
|
Loading…
Reference in a new issue