avcodec/loco: Check for end of input in pixel decode