OSDN Git Service

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 c16a80a..f093e8e 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);