do not create Electronic Arts audio stream when unsupported revision2 audio codec...
authorPeter Ross <pross@xvid.org>
Sun, 10 Jan 2010 05:08:42 +0000 (05:08 +0000)
committerPeter Ross <pross@xvid.org>
Sun, 10 Jan 2010 05:08:42 +0000 (05:08 +0000)
Originally committed as revision 21116 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/electronicarts.c

index 13f6f21..323f3a8 100644 (file)
@@ -192,6 +192,7 @@ static int process_audio_header_elements(AVFormatContext *s)
         case 16: ea->audio_codec = CODEC_ID_MP3; break;
         case -1: break;
         default:
+            ea->audio_codec = 0;
             av_log(s, AV_LOG_ERROR, "unsupported stream type; revision2=%i\n", revision2);
             return 0;
         }