diff --git a/libavformat/oggdec.h b/libavformat/oggdec.h
index 7b93175383f1bfed73d7c18efbc67ad22ad64c82..febf8cb6426ea27694ba403f321ce1f1bc83faf5 100644
--- a/libavformat/oggdec.h
+++ b/libavformat/oggdec.h
@@ -106,7 +106,7 @@ struct ogg {
 #define OGG_FLAG_BOS  2
 #define OGG_FLAG_EOS  4
 
-#define OGG_NOGRANULE_VALUE -1ull
+#define OGG_NOGRANULE_VALUE (-1ull)
 
 extern const struct ogg_codec ff_celt_codec;
 extern const struct ogg_codec ff_dirac_codec;