summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorEdward Hervey <edward.hervey@collabora.co.uk>2012-03-30 12:00:08 +0200
committerEdward Hervey <edward.hervey@collabora.co.uk>2012-03-30 12:00:08 +0200
commit5c83351510972fafc0bd9f9aa39ebe035e9d57a8 (patch)
treef7b104bb86026731a1613ba041bc985f8f5892f1 /ext
parentd1abf468c47ef961b4997a7f61436779510e243f (diff)
oggstream: Fix 'comparison of unsigned expression < 0 is always false'
-1 (aka G_MAXUINT32) is the only possible 'negative' value that is used as a special value for 'not set' here. All other positive values are valid.
Diffstat (limited to 'ext')
-rw-r--r--ext/ogg/gstoggstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ogg/gstoggstream.c b/ext/ogg/gstoggstream.c
index cab9233f0..460f507f8 100644
--- a/ext/ogg/gstoggstream.c
+++ b/ext/ogg/gstoggstream.c
@@ -1200,7 +1200,7 @@ gst_ogg_map_add_fisbone (GstOggStream * pad, GstOggStream * skel_pad,
pad->granulerate_n = GST_READ_UINT64_LE (data);
pad->granulerate_d = GST_READ_UINT64_LE (data + 8);
}
- if (pad->granuleshift < 0) {
+ if (pad->granuleshift == G_MAXUINT32) {
pad->granuleshift = GST_READ_UINT8 (data + 28);
}