From 51f4155fef36b35ff2053b98ee7edca25d65e5d0 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 8 Oct 2008 20:55:22 +0000 Subject: Make gcc 2.95 happy. Originally committed as revision 15589 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/dv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat') diff --git a/libavformat/dv.c b/libavformat/dv.c index 95b3988..c5fecd1 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; -- cgit v1.1