Commit 74170dee authored by Wim Taymans's avatar Wim Taymans

gst-libs/gst/riff/riff-media.c: No need for floating point operations here....

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.
parent 6623ddbf
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),
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment