imc: return error codes instead of 0 for error conditions.
authorJustin Ruggles <justin.ruggles@gmail.com>
Sat, 29 Oct 2011 15:16:01 +0000 (11:16 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Wed, 2 Nov 2011 21:02:22 +0000 (17:02 -0400)
commita4998e448f517a825fdc87e95e6c103223480867
tree7f241c8326d7ce27d8e39d60f7c7b63d281eecad
parent08e5cd3810a563ed2cfee4fd6384d9a516b63fa3
imc: return error codes instead of 0 for error conditions.

This fixes a bug where the whole buffer was returned as decoded audio due to
*data_size not being set to zero and the return value being >= 0.
libavcodec/imc.c