diff electronicarts.c @ 2646:f85d4b3d2d7c libavformat

skip unsupported audio track data
author aurel
date Thu, 18 Oct 2007 23:50:52 +0000
parents cd029641333b
children 48526bd11471
line wrap: on
line diff
--- a/electronicarts.c	Thu Oct 18 23:44:05 2007 +0000
+++ b/electronicarts.c	Thu Oct 18 23:50:52 2007 +0000
@@ -296,6 +296,10 @@
         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);