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.
This commit is contained in:
Edward Hervey 2012-03-30 12:00:08 +02:00
parent d1abf468c4
commit 5c83351510

View file

@ -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);
}