From f5fdbfd4167f4e7d7db2e0c9f8a63648466f639b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 2 Aug 2008 17:57:31 +0000 Subject: [PATCH] gst/matroska/matroska-demux.c: Fix demuxing of raw integer audio. The samples are unsigned only for 8 bit and signed ... Original commit message from CVS: * gst/matroska/matroska-demux.c: (gst_matroska_demux_audio_caps): Fix demuxing of raw integer audio. The samples are unsigned only for 8 bit and signed otherwise, not the other way around. --- ChangeLog | 6 ++++++ gst/matroska/matroska-demux.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d875e35a58..1418f68cbe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-08-02 Sebastian Dröge + + * gst/matroska/matroska-demux.c: (gst_matroska_demux_audio_caps): + Fix demuxing of raw integer audio. The samples are unsigned only for 8 + bit and signed otherwise, not the other way around. + 2008-08-02 Sebastian Dröge * gst/matroska/matroska-mux.c: diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c index ff3f7f406e..bea8c8c4fc 100644 --- a/gst/matroska/matroska-demux.c +++ b/gst/matroska/matroska-demux.c @@ -5127,7 +5127,7 @@ gst_matroska_demux_audio_caps (GstMatroskaTrackAudioContext * caps = gst_caps_new_simple ("audio/x-raw-int", "width", G_TYPE_INT, audiocontext->bitdepth, "depth", G_TYPE_INT, audiocontext->bitdepth, - "signed", G_TYPE_BOOLEAN, audiocontext->bitdepth == 8, + "signed", G_TYPE_BOOLEAN, audiocontext->bitdepth != 8, "endianness", G_TYPE_INT, endianness, NULL); *codec_name = g_strdup_printf ("Raw %d-bit PCM audio",