mp3dec: Fix possible endless loop.
authorAndre Noll <maan@systemlinux.org>
Wed, 17 Aug 2011 17:08:17 +0000 (19:08 +0200)
committerAndre Noll <maan@systemlinux.org>
Thu, 18 Aug 2011 20:14:47 +0000 (22:14 +0200)
commit08d3a77eaeb04981d225a6938404f8ac901407b4
tree85a1f4262f268ce9db11cd06a419532668f2287d
parentec0c9721b6dfcbd70d7a1b318fb9b94e2aab9a5d
mp3dec: Fix possible endless loop.

If the header of the last frame of a (corrupt) mp3 file can be decoded
but the rest of the frame can not, the mp3 decoder may end up in a
busy loop.

Fix this by performing the same check as for errors during header
decode. This adds some code duplication but as we are late in the
release cycle, let's go for the minimal fix for now.
error.h
mp3dec_filter.c