libshine: fix support for shine 3.0
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sun, 24 May 2015 13:44:31 +0000 (15:44 +0200)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Mon, 25 May 2015 14:08:08 +0000 (16:08 +0200)
commite48a9ac9af5f6e652735aa44a86420b5e7258895
tree46bdd80a316dc1716e0ed4bf25b33bc566317d51
parentc50904fd7899e37516324e711b3b8edfe7214da8
libshine: fix support for shine 3.0

shine_encode_buffer expects written to be an int pointer, while the
previous shine_encode_frame expected it to be a long pointer.

Thus encoding with libshine currently always fails with
"internal buffer too small", because a negative return value of
shine_encode_buffer is interpreted as a very large long value.

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/libshine.c