From c3dc53e55162df238aecbb1b7f065cf342d6df73 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 27 Feb 2014 00:37:20 +0000 Subject: [PATCH] matroskademux: calculate alignment properly for audio depths not a multiple of 8 --- gst/matroska/matroska-demux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c index f7eb034..e427acb 100644 --- a/gst/matroska/matroska-demux.c +++ b/gst/matroska/matroska-demux.c @@ -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)) { -- 2.7.4