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 9c20290..806793a 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;