mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
mad: use signed when caluculating the delta
Avoids a <0 check for an unsigned variable.
This commit is contained in:
parent
3de47942a1
commit
d229a538dc
1 changed files with 1 additions and 1 deletions
|
@ -1660,7 +1660,7 @@ gst_mad_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
* bigger than half a frame we then use the incoming timestamp
|
* bigger than half a frame we then use the incoming timestamp
|
||||||
* as a reference, otherwise we continue using our accumulated samples
|
* as a reference, otherwise we continue using our accumulated samples
|
||||||
* counter */
|
* counter */
|
||||||
if (ABS (mad->total_samples - total) > nsamples / 2) {
|
if (ABS (((gint64) (mad->total_samples)) - total) > nsamples / 2) {
|
||||||
GST_DEBUG_OBJECT (mad, "difference is bigger than half a frame, "
|
GST_DEBUG_OBJECT (mad, "difference is bigger than half a frame, "
|
||||||
"using calculated samples offset %" G_GUINT64_FORMAT, total);
|
"using calculated samples offset %" G_GUINT64_FORMAT, total);
|
||||||
/* Override our accumulated samples counter */
|
/* Override our accumulated samples counter */
|
||||||
|
|
Loading…
Reference in a new issue