mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
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:
parent
6623ddbfbd
commit
74170deee7
2 changed files with 7 additions and 1 deletions
|
@ -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),
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue