projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b3e354
)
audio: Fix size check
author
Edward Hervey
<edward.hervey@collabora.co.uk>
Fri, 6 Jan 2012 14:14:59 +0000
(15:14 +0100)
committer
Edward Hervey
<edward.hervey@collabora.co.uk>
Fri, 6 Jan 2012 14:14:59 +0000
(15:14 +0100)
We fail (and return) if the size is *NOT* a multiple of samples.
gst-libs/gst/audio/audio.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/audio/audio.c
b/gst-libs/gst/audio/audio.c
index
c51d9c9
..
bb287b5
100644
(file)
--- a/
gst-libs/gst/audio/audio.c
+++ b/
gst-libs/gst/audio/audio.c
@@
-999,7
+999,7
@@
gst_audio_reorder_channels (gpointer data, gsize size, GstAudioFormat format,
g_return_val_if_fail (info != NULL && info->width > 0, FALSE);
g_return_val_if_fail (info->width > 0, FALSE);
g_return_val_if_fail (info->width <= 8 * 64, FALSE);
- g_return_val_if_fail (size % ((info->width * channels) / 8)
!
= 0, FALSE);
+ g_return_val_if_fail (size % ((info->width * channels) / 8)
=
= 0, FALSE);
g_return_val_if_fail (channels > 0, FALSE);
g_return_val_if_fail (channels <= 64, FALSE);