Commit 1c4ac035 authored by Peter Ross's avatar Peter Ross

electronicarts: prevent endless loop opportunity in process_audio_header_elements()

Fixes issue2529.

Originally committed as revision 26307 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 09fffe9b
...@@ -109,7 +109,7 @@ static int process_audio_header_elements(AVFormatContext *s) ...@@ -109,7 +109,7 @@ static int process_audio_header_elements(AVFormatContext *s)
ea->sample_rate = -1; ea->sample_rate = -1;
ea->num_channels = 1; ea->num_channels = 1;
while (inHeader) { while (!url_feof(pb) && inHeader) {
int inSubheader; int inSubheader;
uint8_t byte; uint8_t byte;
byte = get_byte(pb); byte = get_byte(pb);
...@@ -118,7 +118,7 @@ static int process_audio_header_elements(AVFormatContext *s) ...@@ -118,7 +118,7 @@ static int process_audio_header_elements(AVFormatContext *s)
case 0xFD: case 0xFD:
av_log (s, AV_LOG_DEBUG, "entered audio subheader\n"); av_log (s, AV_LOG_DEBUG, "entered audio subheader\n");
inSubheader = 1; inSubheader = 1;
while (inSubheader) { while (!url_feof(pb) && inSubheader) {
uint8_t subbyte; uint8_t subbyte;
subbyte = get_byte(pb); subbyte = get_byte(pb);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment