From 9502a0e1b75b5c0acfc3f05aa51338b77bab8372 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 17 Apr 2007 02:53:16 +0000 Subject: [PATCH] gst-libs/gst/riff/riff-media.c: Allow random depths between 1 and 32 instead of only multiplies of 8. Original commit message from CVS: * gst-libs/gst/riff/riff-media.c: (gst_riff_create_audio_caps): Allow random depths between 1 and 32 instead of only multiplies of 8. --- ChangeLog | 5 +++++ gst-libs/gst/riff/riff-media.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 89aa47b..138f094 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,11 @@ 2007-04-17 Sebastian Dröge * gst-libs/gst/riff/riff-media.c: (gst_riff_create_audio_caps): + Allow random depths between 1 and 32 instead of only multiplies of 8. + +2007-04-17 Sebastian Dröge + + * gst-libs/gst/riff/riff-media.c: (gst_riff_create_audio_caps): Set the maximum number of channels for PCM and float in the correct place to have it also used when creating the template caps. diff --git a/gst-libs/gst/riff/riff-media.c b/gst-libs/gst/riff/riff-media.c index 7cbad42..2f10d53 100644 --- a/gst-libs/gst/riff/riff-media.c +++ b/gst-libs/gst/riff/riff-media.c @@ -810,8 +810,7 @@ gst_riff_create_audio_caps (guint16 codec_id, caps = gst_caps_from_string ("audio/x-raw-int, " "endianness = (int) LITTLE_ENDIAN, " "signed = (boolean) { true, false }, " - "width = (int) { 8, 16, 24, 32 }, " - "depth = (int) { 8, 16, 24, 32 }"); + "width = (int) { 8, 16, 24, 32 }, " "depth = (int) [ 1, 32 ]"); } if (codec_name && strf) *codec_name = g_strdup_printf ("Uncompressed %d-bit PCM audio", -- 2.7.4