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)
committerAnton Khirnov <anton@khirnov.net>
Fri, 8 Mar 2013 07:12:26 +0000 (08:12 +0100)
commit4c0080b7e7d501e2720d2a61f5186a18377f9d63
tree4c2298aa76c04aa61942a104bc950653ec7504e4
parentcacad1c058f66558ec727faac3b277d2dee264d4
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
libavcodec/wmaprodec.c