wmaprodec: return an error, not 0, when the input is too small.
authorAnton Khirnov <anton@khirnov.net>
Wed, 6 Mar 2013 09:02:50 +0000 (10:02 +0100)
committerReinhard Tartler <siretart@tauware.de>
Sat, 9 Mar 2013 17:54:28 +0000 (18:54 +0100)
commit9b79a05289d91d1184455d12e6c4df457f0657c4
tree1f5e2bb5ee2bceb0ae839ee9a58f7e5648d0b9b5
parent98406bd26e6d29bf782ab1456aa084fafc102a71
wmaprodec: return an error, not 0, when the input is too small.

Returning 0 may result in an infinite loop in valid calling programs. A
decoder should never return 0 without producing any output.

CC:libav-stable@libav.org
(cherry picked from commit 4c0080b7e7d501e2720d2a61f5186a18377f9d63)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
(cherry picked from commit 60dd8b5733f9ec4919fbc732ace1be8184dde880)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavcodec/wmaprodec.c