mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
qtdemux: set interleaved layout correctly for LPCM audio
https://bugzilla.gnome.org/show_bug.cgi?id=663458
This commit is contained in:
parent
a76524ea08
commit
f6a00ad6e9
1 changed files with 4 additions and 3 deletions
|
@ -9878,10 +9878,10 @@ qtdemux_audio_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
|
||||||
format = gst_audio_format_build_integer ((flags & FLAG_IS_SIGNED) ?
|
format = gst_audio_format_build_integer ((flags & FLAG_IS_SIGNED) ?
|
||||||
TRUE : FALSE, (flags & FLAG_IS_BIG_ENDIAN) ?
|
TRUE : FALSE, (flags & FLAG_IS_BIG_ENDIAN) ?
|
||||||
G_BIG_ENDIAN : G_LITTLE_ENDIAN, width, depth);
|
G_BIG_ENDIAN : G_LITTLE_ENDIAN, width, depth);
|
||||||
// FIXME: check FLAG_IS_NON_INTERLEAVED flag for layout
|
|
||||||
caps = gst_caps_new_simple ("audio/x-raw",
|
caps = gst_caps_new_simple ("audio/x-raw",
|
||||||
"format", G_TYPE_STRING, gst_audio_format_to_string (format),
|
"format", G_TYPE_STRING, gst_audio_format_to_string (format),
|
||||||
"layout", G_TYPE_STRING, "interleaved", NULL);
|
"layout", G_TYPE_STRING, (flags & FLAG_IS_NON_INTERLEAVED) ?
|
||||||
|
"non-interleaved" : "interleaved", NULL);
|
||||||
} else {
|
} else {
|
||||||
if (depth == 0)
|
if (depth == 0)
|
||||||
depth = 32;
|
depth = 32;
|
||||||
|
@ -9900,7 +9900,8 @@ qtdemux_audio_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
|
||||||
}
|
}
|
||||||
caps = gst_caps_new_simple ("audio/x-raw",
|
caps = gst_caps_new_simple ("audio/x-raw",
|
||||||
"format", G_TYPE_STRING, gst_audio_format_to_string (format),
|
"format", G_TYPE_STRING, gst_audio_format_to_string (format),
|
||||||
"layout", G_TYPE_STRING, "interleaved", NULL);
|
"layout", G_TYPE_STRING, (flags & FLAG_IS_NON_INTERLEAVED) ?
|
||||||
|
"non-interleaved" : "interleaved", NULL);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue