Return an error when the parsed mpc chunk size is negative, otherwise we
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Wed, 30 Sep 2009 13:35:13 +0000 (13:35 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Wed, 30 Sep 2009 13:35:13 +0000 (13:35 +0000)
commit5dd76bd741022ee87c8a1945e4ef0d97467f70e3
treea44562ad6f479a2f630782efbdf490cc72fc9afe
parent58f873dded3f43755fdd396145f246c91124f9eb
Return an error when the parsed mpc chunk size is negative, otherwise we
might end up in an endless loop where the same chunk is parsed over and over.
Fixes a hang near the end for http://samples.mplayerhq.hu/A-codecs/musepack/sv8/sv8-tags.mpc

Originally committed as revision 20099 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/mpc8.c