mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
matroskademux: calculate alignment properly for audio depths not a multiple of 8
This commit is contained in:
parent
d33b4dce63
commit
c3dc53e551
1 changed files with 1 additions and 1 deletions
|
@ -5264,7 +5264,7 @@ gst_matroska_demux_audio_caps (GstMatroskaTrackAudioContext *
|
|||
|
||||
*codec_name = g_strdup_printf ("Raw %d-bit PCM audio",
|
||||
audiocontext->bitdepth);
|
||||
context->alignment = audiocontext->bitdepth / 8;
|
||||
context->alignment = GST_ROUND_UP_8 (audiocontext->bitdepth) / 8;
|
||||
if (context->alignment > 1 && context->alignment % 2)
|
||||
++context->alignment;
|
||||
} else if (!strcmp (codec_id, GST_MATROSKA_CODEC_ID_AUDIO_PCM_FLOAT)) {
|
||||
|
|
Loading…
Reference in a new issue