diff options
author | Peter Ross <pross@xvid.org> | 2011-01-10 12:56:50 +0000 |
---|---|---|
committer | Peter Ross <pross@xvid.org> | 2011-01-10 12:56:50 +0000 |
commit | e19e051e56ef3d2801bf16683e1628778801b1d6 (patch) | |
tree | 86e02040632e678a43835f94ee2ceec73ec75f02 /libavformat | |
parent | 42396c2e67bec46c5842ace9c237469cde196b4e (diff) | |
download | ffmpeg-e19e051e56ef3d2801bf16683e1628778801b1d6.tar.gz |
electronicarts: prevent endless loop opportunity in process_audio_header_elements()
Fixes issue2529.
Originally committed as revision 26302 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/electronicarts.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c index 27cd4a62db..f671c2609e 100644 --- a/libavformat/electronicarts.c +++ b/libavformat/electronicarts.c @@ -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: |