mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 06:26:23 +00:00
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:
parent
d1abf468c4
commit
5c83351510
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue