summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1bab377)
raw | patch | inline | side by side (parent: 1bab377)
author | Stefan Kost <ensonic@users.sf.net> | |
Fri, 20 May 2011 10:31:14 +0000 (13:31 +0300) | ||
committer | Nikhil Devshatwar <a0132237@ti.com> | |
Fri, 17 May 2013 09:40:32 +0000 (15:10 +0530) |
Avoids a <0 check for an unsigned variable.
ext/mad/gstmad.c | patch | blob | history |
diff --git a/ext/mad/gstmad.c b/ext/mad/gstmad.c
index 4d51d71c1bbac783efd4284bf6b416d6fd4facee..f066b670b5bedc8be1a9167155937670d3afa8af 100644 (file)
--- a/ext/mad/gstmad.c
+++ b/ext/mad/gstmad.c
* bigger than half a frame we then use the incoming timestamp
* as a reference, otherwise we continue using our accumulated samples
* counter */
* bigger than half a frame we then use the incoming timestamp
* as a reference, otherwise we continue using our accumulated samples
* 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, "
"using calculated samples offset %" G_GUINT64_FORMAT, total);
/* Override our accumulated samples counter */
GST_DEBUG_OBJECT (mad, "difference is bigger than half a frame, "
"using calculated samples offset %" G_GUINT64_FORMAT, total);
/* Override our accumulated samples counter */