wma: don't return 0 on invalid packets.
authorRonald S. Bultje <rsbultje@gmail.com>
Sat, 18 Feb 2012 00:57:00 +0000 (16:57 -0800)
committerReinhard Tartler <siretart@tauware.de>
Sun, 26 Feb 2012 09:03:16 +0000 (10:03 +0100)
commitfe710f2074a711b5b07b76fe9ecf11b4068b32ef
tree7f98b0c03b0f393cca4e55cde22a5084ea370c5b
parentbba43a1ea07392f14c508aeff2ee13a4cfc425b5
wma: don't return 0 on invalid packets.

Return 0 means "please return the same data again", i.e. it causes an
infinite loop. Instead, return an error.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
(cherry picked from commit 9d3050d3e95e307ebc34a943484c7add838d1220)

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/wmadec.c