mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-13 09:45:27 +00:00
oggstream: use G_GUINT64_CONSTANT instead of ll suffix
Thanks slomo for pointing out it's not standard.
This commit is contained in:
parent
43ce84e0f4
commit
1791799d71
1 changed files with 3 additions and 3 deletions
|
@ -498,7 +498,7 @@ is_granulepos_keyframe_theora (GstOggStream * pad, gint64 granulepos)
|
||||||
if (granulepos == (gint64) - 1)
|
if (granulepos == (gint64) - 1)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
frame_mask = (1ll << pad->granuleshift) - 1;
|
frame_mask = (G_GUINT64_CONSTANT (1) << pad->granuleshift) - 1;
|
||||||
|
|
||||||
return ((granulepos & frame_mask) == 0);
|
return ((granulepos & frame_mask) == 0);
|
||||||
}
|
}
|
||||||
|
@ -1105,7 +1105,7 @@ packet_duration_flac (GstOggStream * pad, ogg_packet * packet)
|
||||||
return 576 << (block_size_index - 2);
|
return 576 << (block_size_index - 2);
|
||||||
}
|
}
|
||||||
if (block_size_index >= 8) {
|
if (block_size_index >= 8) {
|
||||||
return 256ll << (block_size_index - 8);
|
return G_GUINT64_CONSTANT (256) << (block_size_index - 8);
|
||||||
}
|
}
|
||||||
if (block_size_index == 6 || block_size_index == 7) {
|
if (block_size_index == 6 || block_size_index == 7) {
|
||||||
guint len, bytes = (block_size_index - 6) + 1;
|
guint len, bytes = (block_size_index - 6) + 1;
|
||||||
|
@ -2195,7 +2195,7 @@ is_granulepos_keyframe_daala (GstOggStream * pad, gint64 granulepos)
|
||||||
if (granulepos == (gint64) - 1)
|
if (granulepos == (gint64) - 1)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
frame_mask = (1ll << pad->granuleshift) - 1;
|
frame_mask = (G_GUINT64_CONSTANT (1) << pad->granuleshift) - 1;
|
||||||
|
|
||||||
return ((granulepos & frame_mask) == 0);
|
return ((granulepos & frame_mask) == 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue