[FFmpeg-cvslog] r10806 - trunk/libavformat/electronicarts.c

aurel subversion
Fri Oct 19 01:50:52 CEST 2007


Author: aurel
Date: Fri Oct 19 01:50:52 2007
New Revision: 10806

Log:
skip unsupported audio track data

Modified:
   trunk/libavformat/electronicarts.c

Modified: trunk/libavformat/electronicarts.c
==============================================================================
--- trunk/libavformat/electronicarts.c	(original)
+++ trunk/libavformat/electronicarts.c	Fri Oct 19 01:50:52 2007
@@ -296,6 +296,10 @@ static int ea_read_packet(AVFormatContex
         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);




More information about the ffmpeg-cvslog mailing list