pcmdec: replace a reachable assert with an error check