gst-libs/gst/riff/riff-media.c: No need for floating point operations here. avoids having to link against the math li...

Original commit message from CVS:
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_audio_caps):
No need for floating point operations here. avoids having to link
against the math library too.
This commit is contained in:
Wim Taymans 2007-12-10 15:13:55 +00:00
parent 6623ddbfbd
commit 74170deee7
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2007-12-10 Wim Taymans <wim.taymans@gmail.com>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_audio_caps):
No need for floating point operations here. avoids having to link
against the math library too.
2007-12-10 Tim-Philipp Müller <tim at centricular dot net>
* gst-libs/gst/pbutils/descriptions.c: (formats),

View file

@ -862,7 +862,7 @@ gst_riff_create_audio_caps (guint16 codec_id,
if (strf->size > 32) {
GST_WARNING ("invalid depth (%d) of pcm audio, overwriting.",
strf->size);
strf->size = 8 * (guint) ceil (wd / 8.0);
strf->size = 8 * ((wd + 7) / 8);
}
/* in riff, the depth is stored in the size field but it just means that
* the _least_ significant bits are cleared. We can therefore just play