nutdec: abort if EOF is reached in decode_info_header/read_sm_data n2.5.7
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 19 May 2015 22:34:42 +0000 (00:34 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 22 May 2015 22:57:08 +0000 (00:57 +0200)
commit21d0ae829f72ec327aff31b0cb1af1261b56596c
tree05df01379efa9729fe36a72ed27f4106c0b96304
parentaf27254eb30c7f7d3910555f3b10c272b93fae59
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