skip unsupported audio track data
authorAurelien Jacobs <aurel@gnuage.org>
Thu, 18 Oct 2007 23:50:52 +0000 (23:50 +0000)
committerAurelien Jacobs <aurel@gnuage.org>
Thu, 18 Oct 2007 23:50:52 +0000 (23:50 +0000)
Originally committed as revision 10806 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/electronicarts.c

index c16a80ac1eef2c1c090b3799d03da82b7eb3426e..f093e8e19924a256a5640daba0635703709e51dd 100644 (file)
@@ -296,6 +296,10 @@ static int ea_read_packet(AVFormatContext *s,
         switch (chunk_type) {
         /* audio data */
         case SCDl_TAG:
+            if (!ea->audio_codec) {
+                url_fskip(pb, chunk_size);
+                break;
+            }
             ret = av_get_packet(pb, pkt, chunk_size);
             if (ret != chunk_size)
                 ret = AVERROR(EIO);