From 9853ce8074ac0eefe62e85379552488c43301fe9 Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Thu, 18 Oct 2007 21:56:44 +0000 Subject: [PATCH] set a default value for num_channels Originally committed as revision 10787 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/electronicarts.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c index 9c20290d5b..806793aefd 100644 --- a/libavformat/electronicarts.c +++ b/libavformat/electronicarts.c @@ -80,6 +80,8 @@ static int process_audio_header_elements(AVFormatContext *s) EaDemuxContext *ea = s->priv_data; ByteIOContext *pb = &s->pb; + ea->num_channels = 1; + while (inHeader) { int inSubheader; uint8_t byte;