diff --git a/libavformat/dv.c b/libavformat/dv.c
index 95b39889cfc71fa85660d5ce23e3e9919962ed35..c5fecd10fb0dbecb0164c32fba92f6e19d3103ec 100644
--- a/libavformat/dv.c
+++ b/libavformat/dv.c
@@ -201,7 +201,7 @@ static int dv_extract_audio_info(DVDemuxContext* c, uint8_t* frame)
     quant = as_pack[4] & 0x07; /* 0 - 16bit linear, 1 - 12bit nonlinear */
 
     /* note: ach counts PAIRS of channels (i.e. stereo channels) */
-    ach = (int[4]){  1,  0,  2,  4}[stype];
+    ach = ((int[4]){  1,  0,  2,  4})[stype];
     if (ach == 1 && quant && freq == 2)
         ach = 2;