mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
gst/qtdemux/qtdemux.c: Fix parsing of newer stsd chunks again.
Original commit message from CVS: * gst/qtdemux/qtdemux.c: (qtdemux_parse_trak): Fix parsing of newer stsd chunks again.
This commit is contained in:
parent
f0b8ef9f38
commit
4d598ca201
1 changed files with 3 additions and 1 deletions
|
@ -3159,10 +3159,12 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
|
|||
offset = 52;
|
||||
if (version == 0x00010000) {
|
||||
stream->samples_per_packet = QTDEMUX_GUINT32_GET (stsd->data + offset);
|
||||
stream->samples_per_frame = stream->n_channels;
|
||||
stream->bytes_per_packet = QTDEMUX_GUINT32_GET (stsd->data + offset + 4);
|
||||
stream->bytes_per_frame = QTDEMUX_GUINT32_GET (stsd->data + offset + 8);
|
||||
stream->bytes_per_sample = QTDEMUX_GUINT32_GET (stsd->data + offset + 12);
|
||||
stream->samples_per_frame = (stream->bytes_per_frame /
|
||||
stream->bytes_per_packet) * stream->samples_per_packet;
|
||||
|
||||
|
||||
GST_LOG ("samples/packet: %d", stream->samples_per_packet);
|
||||
GST_LOG ("bytes/packet: %d", stream->bytes_per_packet);
|
||||
|
|
Loading…
Reference in a new issue