return value refactoring
completed by: Daniel Huang
mentors: Ronald S. Bultje
Libav has started out indiscriminately returning -1 for most errors. Nowadays a more elaborate return value framework is in place, but old code has mostly not been adapted to use it. This task consists of going through said old code and refactoring return values.