nutdec: abort if EOF is reached in decode_info_header/read_sm_data
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 19 May 2015 22:34:42 +0000 (00:34 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 1 Jun 2015 21:25:19 +0000 (23:25 +0200)
commit9f99f29f23778efe04c4abdeb3f593162f0d3a0a
tree5300be3e3ebf69e09ce69a2c77f087ba6d514f76
parentb947ff898596558c64e4b72657860ed2b57f58fd
nutdec: abort if EOF is reached in decode_info_header/read_sm_data

These loops can take a lot of time if count is very large.

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit bb23a15df507440deb0dcf25099d321d0f73dc28)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/nutdec.c