electronicarts: prevent endless loop opportunity in process_audio_header_elements()

Fixes issue2529.

Originally committed as revision 26302 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Peter Ross 2011-01-10 12:56:50 +00:00
parent 42396c2e67
commit e19e051e56
1 changed files with 2 additions and 0 deletions

View File

@ -113,6 +113,8 @@ static int process_audio_header_elements(AVFormatContext *s)
int inSubheader;
uint8_t byte;
byte = get_byte(pb);
if (!byte)
break;
switch (byte) {
case 0xFD: