mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
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:
parent
516db3f1d0
commit
a27e171bfa
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue