diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c
index a7a48daaa9746958ef8fd9b43df877cc4607271f..fe19e70f73fc6dbc14a9ba45d57ae42a6aff6ce4 100644
--- a/libavformat/electronicarts.c
+++ b/libavformat/electronicarts.c
@@ -444,7 +444,7 @@ static int ea_read_packet(AVFormatContext *s,
     int packet_read = 0;
     unsigned int chunk_type, chunk_size;
     int key = 0;
-    int num_samples;
+    int av_uninit(num_samples);
 
     while (!packet_read) {
         chunk_type = get_le32(pb);