mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
rtpbuffer: Fix gst_rtp_buffer_ext_timestamp() with clang 5 on iOS/ARM
The bitwise NOT operator is not defined on signed integers. Thanks to Wim Taymans for finding the cause. https://bugzilla.gnome.org/show_bug.cgi?id=711819
This commit is contained in:
parent
7509343e53
commit
76985c5e81
1 changed files with 2 additions and 2 deletions
|
@ -1243,7 +1243,7 @@ gst_rtp_buffer_ext_timestamp (guint64 * exttimestamp, guint32 timestamp)
|
|||
result = timestamp;
|
||||
} else {
|
||||
/* pick wraparound counter from previous timestamp and add to new timestamp */
|
||||
result = timestamp + (ext & ~(G_GINT64_CONSTANT (0xffffffff)));
|
||||
result = timestamp + (ext & ~(G_GUINT64_CONSTANT (0xffffffff)));
|
||||
|
||||
/* check for timestamp wraparound */
|
||||
if (result < ext)
|
||||
|
@ -1254,7 +1254,7 @@ gst_rtp_buffer_ext_timestamp (guint64 * exttimestamp, guint32 timestamp)
|
|||
if (diff > G_MAXINT32) {
|
||||
/* timestamp went backwards more than allowed, we wrap around and get
|
||||
* updated extended timestamp. */
|
||||
result += (G_GINT64_CONSTANT (1) << 32);
|
||||
result += (G_GUINT64_CONSTANT (1) << 32);
|
||||
}
|
||||
}
|
||||
*exttimestamp = result;
|
||||
|
|
Loading…
Reference in a new issue