avcodec/apedec: simplify sign conversion