diff --git a/ChangeLog b/ChangeLog index 6bc5a60b23..4615145575 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-12-10 Wim Taymans + + * 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 * gst-libs/gst/pbutils/descriptions.c: (formats), diff --git a/gst-libs/gst/riff/riff-media.c b/gst-libs/gst/riff/riff-media.c index 6bca196112..023831cbca 100644 --- a/gst-libs/gst/riff/riff-media.c +++ b/gst-libs/gst/riff/riff-media.c @@ -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