qtdemux: check value inside enda to set endianness

This commit is contained in:
David Schleef 2013-04-08 17:53:09 -07:00
parent 8d15235734
commit a55ccff854

View file

@ -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;
}