set a default value for num_channels
authorAurelien Jacobs <aurel@gnuage.org>
Thu, 18 Oct 2007 21:56:44 +0000 (21:56 +0000)
committerAurelien Jacobs <aurel@gnuage.org>
Thu, 18 Oct 2007 21:56:44 +0000 (21:56 +0000)
Originally committed as revision 10787 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/electronicarts.c

index 9c20290d5b23b2818233c3a11da22561f2231fb0..806793aefd13245e33940c52746222a6949d2e50 100644 (file)
@@ -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;