skip unsupported audio track data

Originally committed as revision 10806 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Aurelien Jacobs 17 years ago
parent a2c9473d96
commit 018d0ff973
  1. 4
      libavformat/electronicarts.c

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

Loading…
Cancel
Save