Do not fail DVB sub decoding because of a few padding bytes
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Wed, 9 Feb 2011 18:32:07 +0000 (19:32 +0100)
committerJanne Grunau <janne-ffmpeg@jannau.net>
Thu, 10 Feb 2011 20:37:31 +0000 (21:37 +0100)
commit4a72765a1c94b05bd3053b1f34f8457a3b71d714
treef4b4195d815c54a0ee243c40038307f6c9f69352
parentdda3f0ef48aa5c3b03566b60b6bf63211e1fe579
Do not fail DVB sub decoding because of a few padding bytes

Instead of returning an error when bytes are left over, just return
the number of actually used bytes as other decoders do.
Instead add a special case so an error will be returned when none
of the data looks valid to avoid making debugging a pain.

Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
libavcodec/dvbsubdec.c