From bcac26f0d27cbded03e7e4188c4334ad22ff22e6 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Fri, 18 Feb 2011 17:08:46 -0500 Subject: [PATCH] Quiet 64-bit to 32-bit warning. Revert this if it causes problems with ffmpeg. --- src/ffmpeg/include/ffmpeg/rational.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ffmpeg/include/ffmpeg/rational.h b/src/ffmpeg/include/ffmpeg/rational.h index 63c0b150f2..23da2e2421 100644 --- a/src/ffmpeg/include/ffmpeg/rational.h +++ b/src/ffmpeg/include/ffmpeg/rational.h @@ -46,7 +46,7 @@ typedef struct AVRational{ static inline int av_cmp_q(AVRational a, AVRational b){ const int64_t tmp= a.num * (int64_t)b.den - b.num * (int64_t)a.den; - if(tmp) return (tmp>>63)|1; + if(tmp) return (int)((tmp>>63)|1); else return 0; }