mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
qtdemux: check value inside enda to set endianness
This commit is contained in:
parent
8d15235734
commit
a55ccff854
1 changed files with 2 additions and 1 deletions
|
@ -7316,8 +7316,9 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
|
|||
enda = qtdemux_tree_get_child_by_type (wave, FOURCC_enda);
|
||||
}
|
||||
if (enda) {
|
||||
int enda_value = QT_UINT16 ((guint8 *) enda->data + 8);
|
||||
gst_caps_set_simple (stream->caps,
|
||||
"format", G_TYPE_STRING, "S24LE", NULL);
|
||||
"format", G_TYPE_STRING, (enda_value) ? "S24LE" : "S24BE", NULL);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue