qtdemux: extract bit depth from codec data for ALAC

The info in the sound sample description might not be
accurate if it's an older version atom.

Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/771

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/686>
This commit is contained in:
Tim-Philipp Müller 2020-07-31 11:05:02 +01:00
parent 516db3f1d0
commit a27e171bfa

View file

@ -12384,6 +12384,7 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
entry->bytes_per_frame = QT_UINT32 (alac_data + 12);
entry->n_channels = QT_UINT8 (alac_data + 21);
entry->rate = QT_UINT32 (alac_data + 32);
samplesize = QT_UINT8 (alac_data + 16 + 1);
}
}
gst_caps_set_simple (entry->caps,