lavc/rv30: fix mem leak in case of init failure
authorLukasz Marek <lukasz.m.luki2@gmail.com>
Sat, 22 Nov 2014 22:11:50 +0000 (23:11 +0100)
committerLukasz Marek <lukasz.m.luki2@gmail.com>
Sun, 23 Nov 2014 19:53:17 +0000 (20:53 +0100)
commit4e9745fbff5174c0679452b613b0b73f08ca0280
tree84bef3c9463c6521d73d611d2f898f0c7a25e0af
parent331fae80a1fb9b027442047fb564c02c6c41e70b
lavc/rv30: fix mem leak in case of init failure

Also replaced return -1 with return AVERROR(EINVAL)

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
libavcodec/rv30.c