diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c
index dd8cf5d64497083c7547f4580773d1a2bc56baa0..d01883f3c3e9040ad0cc3f1289979f06ca24fbce 100644
--- a/libavformat/electronicarts.c
+++ b/libavformat/electronicarts.c
@@ -351,7 +351,7 @@ static int process_ea_header(AVFormatContext *s)
     int i;
 
     for (i = 0; i < 5 && (!ea->audio_codec || !ea->video_codec); i++) {
-        unsigned int startpos = avio_tell(pb);
+        uint64_t startpos     = avio_tell(pb);
         int err               = 0;
 
         blockid = avio_rl32(pb);