diff --git a/libavformat/mov.c b/libavformat/mov.c
index b922579ac0acea765825291df189dc2bd9df06cf..ba052067f6c1beeeb8742a414e0ccf7f763dc21f 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1013,7 +1013,7 @@ static int mov_read_colr(MOVContext *c, AVIOContext *pb, MOVAtom atom)
 {
     AVStream *st;
     char color_parameter_type[5] = { 0 };
-    int color_primaries, color_trc, color_matrix;
+    uint16_t color_primaries, color_trc, color_matrix;
     int ret;
 
     if (c->fc->nb_streams < 1)