avcodec/cavsdec: use more specific error codes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/cavsdec: print error messages in case of errors

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>