pcmdec: fix output buffer size check by calculating the actual output size